File tree 1 file changed +8
-10
lines changed
1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -158,13 +158,12 @@ impl Artifact {
158
158
Ok ( v) => {
159
159
return Ok ( v) ;
160
160
}
161
- Err ( err) => {
162
- eprintln ! ( "Could not deserialize as static object: {}" , err) ;
161
+ Err ( _) => {
162
+ return Err ( DeserializeError :: Incompatible (
163
+ "The provided bytes are not wasmer-universal" . to_string ( ) ,
164
+ ) ) ;
163
165
}
164
166
}
165
- return Err ( DeserializeError :: Incompatible (
166
- "The provided bytes are not wasmer-universal" . to_string ( ) ,
167
- ) ) ;
168
167
}
169
168
170
169
let bytes = Self :: get_byte_slice ( bytes, ArtifactBuild :: MAGIC_HEADER . len ( ) , bytes. len ( ) ) ?;
@@ -198,13 +197,12 @@ impl Artifact {
198
197
Ok ( v) => {
199
198
return Ok ( v) ;
200
199
}
201
- Err ( err) => {
202
- eprintln ! ( "Could not deserialize as static object: {}" , err) ;
200
+ Err ( _) => {
201
+ return Err ( DeserializeError :: Incompatible (
202
+ "The provided bytes are not wasmer-universal" . to_string ( ) ,
203
+ ) ) ;
203
204
}
204
205
}
205
- return Err ( DeserializeError :: Incompatible (
206
- "The provided bytes are not wasmer-universal" . to_string ( ) ,
207
- ) ) ;
208
206
}
209
207
210
208
let bytes = Self :: get_byte_slice ( bytes, ArtifactBuild :: MAGIC_HEADER . len ( ) , bytes. len ( ) ) ?;
You can’t perform that action at this time.
0 commit comments