summaryrefslogtreecommitdiff
path: root/cli/js/os.ts
diff options
context:
space:
mode:
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;