Skip to content

Commit

Permalink
Merge pull request getodk#6355 from seadowg/path-error-message
Browse files Browse the repository at this point in the history
Add message to PathUtils exception
  • Loading branch information
grzesiek2010 authored and seadowg committed Aug 22, 2024
1 parent 4702298 commit 20547ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/src/main/java/org/odk/collect/shared/PathUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ object PathUtils {
if (File(absolutePath).canonicalPath.startsWith(dirPath)) {
return absolutePath
} else {
throw SecurityException()
throw SecurityException("Invalid path: $absolutePath")
}
}

Expand Down

0 comments on commit 20547ae

Please sign in to comment.