Skip to content

Commit ed45c23

Browse files
authored
Merge branch 'master' into feat/forc-edit-subcommands-impl
2 parents 0ff3213 + aafcdc8 commit ed45c23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

forc-plugins/forc-publish/src/error.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ impl Error {
4444
status,
4545
error: parsed_error.error,
4646
},
47-
Err(_) => Error::ApiResponseError {
47+
Err(err) => Error::ApiResponseError {
4848
status,
49-
error: "Unknown API error".to_string(),
49+
error: format!("Unexpected API error: {}", err),
5050
},
5151
}
5252
}
@@ -118,7 +118,7 @@ mod test {
118118
match error {
119119
Error::ApiResponseError { status, error } => {
120120
assert_eq!(status, StatusCode::INTERNAL_SERVER_ERROR);
121-
assert_eq!(error, "Unknown API error");
121+
assert_eq!(error, "Unexpected API error: error decoding response body");
122122
}
123123
_ => panic!("Expected ApiResponseError"),
124124
}

0 commit comments

Comments
 (0)