fix wrong type
Some checks failed
Publish / publish (push) Has been cancelled

This commit is contained in:
Anton Nesterov 2024-10-19 16:20:05 +02:00
parent 70373a6dc9
commit 9051b35491
No known key found for this signature in database
GPG key ID: 59121E8AE2851FB5

View file

@ -31,7 +31,7 @@ export class Err extends Error {
of(cls: any): boolean { of(cls: any): boolean {
return this.Of(cls); return this.Of(cls);
} }
static fromCatch(error: any): Error { static fromCatch(error: any): Status {
const e = new Err(typeof error === "string" ? error : error.message); const e = new Err(typeof error === "string" ? error : error.message);
e.cause = error; e.cause = error;
e.stack = error.stack; e.stack = error.stack;