We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ff3213 + aafcdc8 commit ed45c23Copy full SHA for ed45c23
forc-plugins/forc-publish/src/error.rs
@@ -44,9 +44,9 @@ impl Error {
44
status,
45
error: parsed_error.error,
46
},
47
- Err(_) => Error::ApiResponseError {
+ Err(err) => Error::ApiResponseError {
48
49
- error: "Unknown API error".to_string(),
+ error: format!("Unexpected API error: {}", err),
50
51
}
52
@@ -118,7 +118,7 @@ mod test {
118
match error {
119
Error::ApiResponseError { status, error } => {
120
assert_eq!(status, StatusCode::INTERNAL_SERVER_ERROR);
121
- assert_eq!(error, "Unknown API error");
+ assert_eq!(error, "Unexpected API error: error decoding response body");
122
123
_ => panic!("Expected ApiResponseError"),
124
0 commit comments