Skip to content

Commit 99d671a

Browse files
committed
fix(server-error): return name properties
1 parent ff3d208 commit 99d671a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/renderers/phantom/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,15 @@ export class Server {
194194
}
195195

196196
Server.Error = class ServerError extends Error {
197-
get name() { 'ServerError' }
197+
get name() { return 'ServerError' }
198198
}
199199

200200
Server.Error.UnknownMethod = class UnknownMethodError extends Server.Error {
201-
get name() { 'ServerError.UnknownMethod' }
201+
get name() { return 'ServerError.UnknownMethod' }
202202
}
203203

204204
Server.Error.PageNotFound = class PageNotFoundError extends Server.Error {
205-
get name() { 'ServerError.PageNotFound' }
205+
get name() { return 'ServerError.PageNotFound' }
206206
}
207207

208208
export default Server;

0 commit comments

Comments
 (0)