diff options
author | Elizabeth <lizhunt@amazon.com> | 2025-05-28 15:05:38 -0700 |
---|---|---|
committer | Elizabeth <lizhunt@amazon.com> | 2025-05-28 15:05:38 -0700 |
commit | 3005cc83e605fb89b079cf0e6fd0ec95cd27b30e (patch) | |
tree | 992c5933f2ec4a75e32469ddd772c61dbcb2e2fd /u/server/filter/mod.ts | |
parent | e3cf820b07e282221502cf2f116c9780b7375e0e (diff) | |
download | ci-3005cc83e605fb89b079cf0e6fd0ec95cd27b30e.tar.gz ci-3005cc83e605fb89b079cf0e6fd0ec95cd27b30e.zip |
Run prettier, add zed settings
Diffstat (limited to 'u/server/filter/mod.ts')
-rw-r--r-- | u/server/filter/mod.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/u/server/filter/mod.ts b/u/server/filter/mod.ts index bbf37df..3b247fc 100644 --- a/u/server/filter/mod.ts +++ b/u/server/filter/mod.ts @@ -13,11 +13,13 @@ export enum ErrorSource { export class PenguenoError extends Error { public readonly source: ErrorSource; - constructor(message: string, public readonly status: number) { + constructor( + message: string, + public readonly status: number, + ) { super(message); - this.source = Math.floor(status / 100) === 4 - ? ErrorSource.USER - : ErrorSource.SYSTEM; + this.source = + Math.floor(status / 100) === 4 ? ErrorSource.USER : ErrorSource.SYSTEM; } } |