Skip to content

Commit

Permalink
Fix: new NotFound exception should be named NotFoundError
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Golovanov committed Jan 17, 2018
1 parent b85d5ba commit c96da45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { HTTPError } from "./http";
export { AccessDeniedError } from "./access-denied";
export { BadRequestError } from "./bad-request";
export { NotFound } from "./not-found";
export { NotFoundError } from "./not-found";
2 changes: 1 addition & 1 deletion src/not-found.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { HTTPError } from "./http";

export class NotFound extends HTTPError {
export class NotFoundError extends HTTPError {
constructor( message, extra ) {
super( 404, message || "Not Found", extra );
}
Expand Down

0 comments on commit c96da45

Please sign in to comment.