Skip to content

Commit e6df8d2

Browse files
committed
chore(result): error message typo
1 parent d5e4d30 commit e6df8d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/result.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ export class Result<TValue = Unit, TError = string> {
251251
const { value, error, isSuccess } = state;
252252

253253
if (isSome(value) && !isSuccess) {
254-
throw new Error('Value cannot be defined for failed ResultAll');
254+
throw new Error('Value cannot be defined for failed Result');
255255
} else if (isSome(error) && isSuccess) {
256-
throw new Error('Error cannot be defined for successful ResultAll');
256+
throw new Error('Error cannot be defined for successful Result');
257257
} else if (!isSome(value) && !isSome(error)) {
258258
throw new Error('Value or Error must be defined');
259259
}

0 commit comments

Comments
 (0)