Skip to content

Commit

Permalink
feat: Increase verbosity if parsing refs fails, to aid debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic committed Jul 11, 2023
1 parent d0fc15b commit 5196692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rs/ic-management-backend/src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ impl RegistryState {
};
Ok(rr)
} else {
Err(anyhow::anyhow!("unable to parse release name"))
Err(anyhow::anyhow!("unable to parse release name for version {}, refs {:?}", version, refs))
}
}
Err(gitlab::api::ApiError::Gitlab { msg }) if msg.contains(reqwest::StatusCode::NOT_FOUND.as_str()) => Err(anyhow::format_err!("no releases found for version {}", version)),
Expand Down

0 comments on commit 5196692

Please sign in to comment.