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

Improve error messages #104

Merged
merged 1 commit into from
Aug 14, 2024
Merged
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
8 changes: 4 additions & 4 deletions buildpacks/dotnet/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,14 @@ fn on_buildpack_error(error: &DotnetBuildpackError) {
}
},
DotnetBuildpackError::PublishCommand(error) => match error {
fun_run::CmdError::SystemError(message, io_error) => log_io_error(
"Unable to publish solution",
&format!("running the command to publish the .NET project/solution: {message}"),
fun_run::CmdError::SystemError(_message, io_error) => log_io_error(
"Unable to publish",
"running the command to publish the .NET solution/project",
io_error,
),
fun_run::CmdError::NonZeroExitNotStreamed(output)
| fun_run::CmdError::NonZeroExitAlreadyStreamed(output) => log_error(
"Failed to publish solution",
"Unable to publish",
formatdoc! {"
The `dotnet publish` command exited unsuccessfully ({exit_status}).

Expand Down