Skip to content

Commit c96da45

Browse files
author
Alexander Golovanov
committed
Fix: new NotFound exception should be named NotFoundError
1 parent b85d5ba commit c96da45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export { HTTPError } from "./http";
22
export { AccessDeniedError } from "./access-denied";
33
export { BadRequestError } from "./bad-request";
4-
export { NotFound } from "./not-found";
4+
export { NotFoundError } from "./not-found";

src/not-found.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { HTTPError } from "./http";
44

5-
export class NotFound extends HTTPError {
5+
export class NotFoundError extends HTTPError {
66
constructor( message, extra ) {
77
super( 404, message || "Not Found", extra );
88
}

0 commit comments

Comments
 (0)