From eacae7e9c323dfd462856f5a1989f9abd66c1e43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haz=20=C3=86=2041?= <4405263+hazae41@users.noreply.github.com> Date: Tue, 29 Aug 2023 18:49:19 +0200 Subject: [PATCH] thrown --- src/mods/result/err.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mods/result/err.ts b/src/mods/result/err.ts index 70bf4e1..a9aec29 100644 --- a/src/mods/result/err.ts +++ b/src/mods/result/err.ts @@ -205,7 +205,7 @@ export class Err { throw(thrower: (e: Err) => void): never { thrower(this) - throw new Panic(`Thrown result was try-catched`) + throw new Panic(`Thrown`, { cause: this }) } /**