mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 13:14:48 +00:00
fix(std): Use Deno.errors where possible. (#4356)
This commit is contained in:
parent
aab1acaed1
commit
0f6acf2753
13 changed files with 71 additions and 86 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue