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 23, 2024
1 parent e5193e4 commit db209a7
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 db209a7

Please sign in to comment.