Skip to content

Commit

Permalink
Improve handling of publish error (#4703) [ci fast]
Browse files Browse the repository at this point in the history

Signed-off-by: Ben Sherman <bentshermann@gmail.com>
  • Loading branch information
bentsherman committed Feb 5, 2024
1 parent 21ea0ed commit fc9f768
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -504,7 +504,12 @@ class PublishDir {
}

protected void createPublishDir() {
makeDirs(this.path)
try {
makeDirs(path)
}
catch( Throwable e ) {
throw new IllegalStateException("Failed to create publish directory: ${path.toUriString()}", e)
}
}

protected void makeDirs(Path dir) {
Expand Down

0 comments on commit fc9f768

Please sign in to comment.