« first day (4431 days earlier)      last day (503 days later) » 

1:28 AM
 
 
4 hours later…
5:12 AM
export class CustomError extends Error {
    status = 400;

    constructor(status: number, message: string) {
        super(message);
        this.status = status;
        Object.setPrototypeOf(this, CustomError.prototype);
       //error TS2550: Property 'setPrototypeOf' does not exist on type 'ObjectConstructor'.
       //Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
    }

    getErrorMessage() {
        return 'Something went wrong: ' + this.message;
 
 
1 hour later…
6:19 AM
Anyone doing advent of code?
I remember SO Chat used to have a private leader board for it. Anyway like always first few days have been fun, I'm sure that will change as the puzzles start taking hours.
 

« first day (4431 days earlier)      last day (503 days later) »