fix(std): Use Deno.errors where possible. (#4356)

This commit is contained in:
Oliver Lenehan 2020-03-14 12:40:13 +11:00 committed by GitHub
parent aab1acaed1
commit 0f6acf2753
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 71 additions and 86 deletions

View file

@ -4,7 +4,7 @@
// license that can be found in the LICENSE file.
import { BufReader } from "../io/bufio.ts";
import { TextProtoReader, ProtocolError } from "./mod.ts";
import { TextProtoReader } from "./mod.ts";
import { stringsReader } from "../io/util.ts";
import {
assert,
@ -134,7 +134,7 @@ test({
} catch (e) {
err = e;
}
assert(err instanceof ProtocolError);
assert(err instanceof Deno.errors.InvalidData);
}
});
@ -156,7 +156,7 @@ test({
} catch (e) {
err = e;
}
assert(err instanceof ProtocolError);
assert(err instanceof Deno.errors.InvalidData);
}
});