Skip to content

Commit eee764e

Browse files
committed
Better / more robust error handling
1 parent 79c0314 commit eee764e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/std/src/imports.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,7 @@ impl Api for ExternalApi {
199199
match result {
200200
1 => Ok(true),
201201
0 => Ok(false),
202-
ptr => {
203-
let error = unsafe { consume_string_region_written_by_vm(ptr as *mut Region) };
204-
return Err(StdError::generic_err(format!(
205-
"verify_secp256k1 error: {}",
206-
error
207-
)));
208-
}
202+
x => panic!(format!("unexpected verify_secp256k1 return value: {}", x)),
209203
}
210204
}
211205

0 commit comments

Comments
 (0)