Skip to content

Change error handling style#15

Open
Kashuab wants to merge 1 commit intomainfrom
uhhhh
Open

Change error handling style#15
Kashuab wants to merge 1 commit intomainfrom
uhhhh

Conversation

@Kashuab
Copy link
Owner

@Kashuab Kashuab commented Sep 20, 2024

Instead of

someFunc.try('value')
  .catchSomeError(err => { /* blah */ });

it's

someFunc.try('value')
  .catch({
    SomeError: err => { /* blah */ }
  });

See: #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant