Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exception message to 'failed to create output directory' #17951

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,9 @@ private void createActionFsOutputDirectories(
action.getOutputs(), artifactPathResolver);
} catch (CreateOutputDirectoryException e) {
throw toActionExecutionException(
String.format("failed to create output directory '%s'", e.directoryPath),
String.format(
"failed to create output directory '%s': %s",
e.directoryPath, e.getMessage()),
e,
action,
null,
Expand Down Expand Up @@ -1338,7 +1340,7 @@ private static void setupActionFsFileOutErr(FileOutErr fileOutErr, Action action
} catch (IOException e) {
String message =
String.format(
"failed to create output directory for output streams'%s': %s",
"failed to create output directory for output streams '%s': %s",
fileOutErr.getErrorPath(), e.getMessage());
DetailedExitCode code =
createDetailedExitCode(message, Code.ACTION_FS_OUT_ERR_DIRECTORY_CREATION_FAILURE);
Expand Down