Skip to content

Commit

Permalink
Add output test for propolis-server
Browse files Browse the repository at this point in the history
  • Loading branch information
lif committed Sep 17, 2022
1 parent 13bde6d commit eeaa9c8
Show file tree
Hide file tree
Showing 5 changed files with 4,497 additions and 4 deletions.
8 changes: 4 additions & 4 deletions progenitor-impl/src/method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -891,10 +891,10 @@ impl Generator {
}
}
OperationResponseType::Upgrade => {
quote! {
Err(Error::ErrorResponse(
ResponseValue::upgrade(response).await?
))
if response.status_code == OperationResponseStatus::Default {
return quote! { } // catch-all handled below
} else {
todo!("non-default error response handling for upgrade requests is not yet implemented");
}
}
};
Expand Down
Loading

0 comments on commit eeaa9c8

Please sign in to comment.