diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-24 15:48:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 15:48:35 -0500 |
commit | e1687c0a4616e90d4bbde42b13a0356a7f6a1e7d (patch) | |
tree | 9aff6a2281d87a2487f8ed98b0b3f0a8733d04b5 /cli/js/dispatch_minimal.ts | |
parent | db597055958a9dbc9c8e633e01d9229b55d1d6ef (diff) |
rename Deno.Err -> Deno.errors (#4093)
Diffstat (limited to 'cli/js/dispatch_minimal.ts')
-rw-r--r-- | cli/js/dispatch_minimal.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/dispatch_minimal.ts b/cli/js/dispatch_minimal.ts index 203701085..988cb8af2 100644 --- a/cli/js/dispatch_minimal.ts +++ b/cli/js/dispatch_minimal.ts @@ -2,7 +2,7 @@ import * as util from "./util.ts"; import { core } from "./core.ts"; import { TextDecoder } from "./text_encoding.ts"; -import { Err, ErrorKind, constructError } from "./errors.ts"; +import { errors, ErrorKind, constructError } from "./errors.ts"; const promiseTableMin = new Map<number, util.Resolvable<RecordMinimal>>(); // Note it's important that promiseId starts at 1 instead of 0, because sync @@ -43,7 +43,7 @@ export function recordFromBufMinimal(ui8: Uint8Array): RecordMinimal { const message = decoder.decode(ui8.slice(12)); err = { kind, message }; } else if (ui8.length != 12) { - throw new Err.InvalidData("BadMessage"); + throw new errors.InvalidData("BadMessage"); } return { |