summaryrefslogtreecommitdiff
path: root/cli/js/os.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-02-24 15:48:35 -0500
committerGitHub <noreply@github.com>2020-02-24 15:48:35 -0500
commite1687c0a4616e90d4bbde42b13a0356a7f6a1e7d (patch)
tree9aff6a2281d87a2487f8ed98b0b3f0a8733d04b5 /cli/js/os.ts
parentdb597055958a9dbc9c8e633e01d9229b55d1d6ef (diff)
rename Deno.Err -> Deno.errors (#4093)
Diffstat (limited to 'cli/js/os.ts')
-rw-r--r--cli/js/os.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/os.ts b/cli/js/os.ts
index 7953c2cef..7458ee469 100644
--- a/cli/js/os.ts
+++ b/cli/js/os.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as dispatch from "./dispatch.ts";
import { sendSync } from "./dispatch_json.ts";
-import { Err } from "./errors.ts";
+import { errors } from "./errors.ts";
import * as util from "./util.ts";
/** Check if running in terminal.
@@ -210,7 +210,7 @@ export function dir(kind: DirKind): string | null {
try {
return sendSync(dispatch.OP_GET_DIR, { kind });
} catch (error) {
- if (error instanceof Err.PermissionDenied) {
+ if (error instanceof errors.PermissionDenied) {
throw error;
}
return null;