mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2025-07-26 03:19:21 +02:00
Add thiserror instead of exposing eyre anonymous errors
The change here is to make it easier for the consumer to debug the api. Such that they can `match` on individual errors instead of having to parse text. eyre is convenient, but mostly from a consumers perspective
This commit is contained in:
@@ -235,8 +235,10 @@ fn render_output_type(funcs: &CommonFunctions, type_ref: &TypeRef) -> rust::Toke
|
||||
};
|
||||
}
|
||||
|
||||
let dagger_error = rust::import("crate::errors", "DaggerError");
|
||||
|
||||
quote! {
|
||||
eyre::Result<$output_type>
|
||||
Result<$output_type, $dagger_error>
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user