Setup eslint and enforce rules
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {ErrorWithContext, HTTPStatus, HTTPMessage} from "../util"
|
||||
import {ErrorWithContext, HTTPStatus, HTTPMessage} from '../util'
|
||||
|
||||
/**
|
||||
* An error class that has an associated HTTP status.
|
||||
@@ -9,7 +9,7 @@ import {ErrorWithContext, HTTPStatus, HTTPMessage} from "../util"
|
||||
export class HTTPError extends ErrorWithContext {
|
||||
constructor(
|
||||
public readonly status: HTTPStatus = 500,
|
||||
public readonly message: string = ''
|
||||
public readonly message: string = '',
|
||||
) {
|
||||
super('HTTP ERROR')
|
||||
this.message = message || HTTPMessage[status]
|
||||
|
||||
Reference in New Issue
Block a user