You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libcnb-cargo/src/package/error.rs
+8-10Lines changed: 8 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -50,8 +50,8 @@ pub(crate) enum Error {
50
50
source: std::io::Error,
51
51
},
52
52
53
-
#[error("Unexpected Cargo exit status for target {target}\nExit Status: {code}\nExamine Cargo output for details and potential compilation errors.")]
54
-
BinaryBuildExitStatus{target:String,code:String},
53
+
#[error("Unexpected Cargo exit status for target {0}\nExit Status: {}\nExamine Cargo output for details and potential compilation errors.",.exit_code_or_unknown(.1))]
54
+
BinaryBuildExitStatus(String,ExitStatus),
55
55
56
56
#[error("Configured buildpack target name {target} could not be found!")]
57
57
BinaryBuildMissingTarget{target:String},
@@ -126,8 +126,8 @@ pub(crate) enum Error {
126
126
#[error("Failed to spawn Cargo command\nError: {0}")]
127
127
SpawnCargoCommand(std::io::Error),
128
128
129
-
#[error("Unexpected Cargo exit status while attempting to read workspace root\nExit Status: {0}\nExamine Cargo output for details and potential compilation errors.")]
130
-
CargoCommandFailure(String),
129
+
#[error("Unexpected Cargo exit status while attempting to read workspace root\nExit Status: {}\nExamine Cargo output for details and potential compilation errors.", exit_code_or_unknown(.0))]
130
+
CargoCommandFailure(ExitStatus),
131
131
132
132
#[error("Could not read Cargo.toml metadata from workspace\nPath: {0}\nError: {1}")]
0 commit comments