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:
@@ -14,13 +14,16 @@
|
||||
*/
|
||||
export class ErrorWithContext extends Error {
|
||||
public context: {[key: string]: any} = {}
|
||||
|
||||
public originalError?: Error
|
||||
|
||||
constructor(
|
||||
message: string,
|
||||
context?: {[key: string]: any}
|
||||
context?: {[key: string]: any},
|
||||
) {
|
||||
super(message)
|
||||
if ( context ) this.context = context
|
||||
if ( context ) {
|
||||
this.context = context
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user