Skip to content

Commit

Permalink
add Error prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
lastmjs committed Oct 29, 2024
1 parent 4c19f29 commit 1c82f1e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified canister_templates/experimental.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion src/lib/experimental/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { trap } from './ic/trap';
export function handleUncaughtError(rawError: any): never {
const error = rawError instanceof Error ? rawError : new Error(rawError);

const azleError = `Uncaught ${error.name}: ${error.message}${error.stack}`;
const azleError = `Uncaught ${error.name}: Error: ${error.message}${error.stack}`;

trap(azleError);
}

0 comments on commit 1c82f1e

Please sign in to comment.