forked from mirrors/amnezia-wg-easy
fix: revert ServerError.js
This commit is contained in:
parent
e8a160b14f
commit
7efdbf38e4
1 changed files with 10 additions and 0 deletions
10
src/lib/ServerError.js
Normal file
10
src/lib/ServerError.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = class ServerError extends Error {
|
||||
|
||||
constructor(message, statusCode = 500) {
|
||||
super(message);
|
||||
this.statusCode = statusCode;
|
||||
}
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue