Skip to content

Commit

Permalink
thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
hazae41 committed Aug 29, 2023
1 parent b192d6a commit eacae7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mods/result/err.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export class Err<T = unknown> {
throw(thrower: (e: Err<T>) => void): never {
thrower(this)

throw new Panic(`Thrown result was try-catched`)
throw new Panic(`Thrown`, { cause: this })
}

/**
Expand Down

0 comments on commit eacae7e

Please sign in to comment.