mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Enable strict TypeScript settings
This commit is contained in:
@@ -11,7 +11,7 @@ export abstract class HttpError extends Error {
|
||||
* @param name - Error name. Useful for logging and stack tracing.
|
||||
* @param message - Message to be thrown.
|
||||
*/
|
||||
protected constructor(statusCode: number, name: string, message: string) {
|
||||
protected constructor(statusCode: number, name: string, message?: string) {
|
||||
super(message);
|
||||
this.statusCode = statusCode;
|
||||
this.name = name;
|
||||
|
||||
@@ -10,6 +10,6 @@ export class UnsupportedHttpError extends HttpError {
|
||||
* @param message - Optional, more specific, message.
|
||||
*/
|
||||
public constructor(message?: string) {
|
||||
super(400, 'UnsupportedHttpError', message || 'The given input is not supported by the server configuration.');
|
||||
super(400, 'UnsupportedHttpError', message ?? 'The given input is not supported by the server configuration.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user