diff --git a/cheetah.ts b/cheetah.ts index c763267..637553b 100644 --- a/cheetah.ts +++ b/cheetah.ts @@ -391,7 +391,9 @@ export class cheetah extends base() { if (this.#error) { res = await this.#error(err, req) } else { - res = new Exception('Something Went Wrong', undefined, 500).response(req) + res = new Exception('Something Went Wrong', undefined, 500).response( + req, + ) } } diff --git a/context.ts b/context.ts index a1e1966..9be1094 100644 --- a/context.ts +++ b/context.ts @@ -29,7 +29,7 @@ const HTTP_MESSAGES = { 'Precondition Required': 428, 'Rate Limit Exceeded': 429, 'Regional Ban': 451, - 'Something Went Wrong': 500 + 'Something Went Wrong': 500, } export class Context< @@ -110,7 +110,13 @@ export class Context< return this.#req } - this.#req = new RequestContext(this.#a, this.#p, this.#r, this.#s, this.exception) + this.#req = new RequestContext( + this.#a, + this.#p, + this.#r, + this.#s, + this.exception, + ) return this.#req } diff --git a/x/x.test.tsx b/x/x.test.tsx index 857f4dc..b595ad8 100644 --- a/x/x.test.tsx +++ b/x/x.test.tsx @@ -1,10 +1,7 @@ // Copyright 2023 Samuel Kopp. All rights reserved. Apache-2.0 license. /** @jsx h */ import { cheetah } from '../cheetah.ts' -import { - assertEquals, - assertInstanceOf, -} from '../test/deps.ts' +import { assertEquals, assertInstanceOf } from '../test/deps.ts' import { h, jsx } from './jsx.tsx' import { createKey, importKey, sign, verify } from './jwt.ts'