diff options
Diffstat (limited to 'js/errors.ts')
-rw-r--r-- | js/errors.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/errors.ts b/js/errors.ts index ad7b6be21..d0254ef65 100644 --- a/js/errors.ts +++ b/js/errors.ts @@ -1,10 +1,11 @@ import * as fbs from "gen/msg_generated"; +export { ErrorKind } from "gen/msg_generated"; // @internal export class DenoError<T extends fbs.ErrorKind> extends Error { constructor(readonly kind: T, msg: string) { super(msg); - this.name = `deno.${fbs.ErrorKind[kind]}`; + this.name = fbs.ErrorKind[kind]; } } |