Skip to content

core: refactor error interface#375

Merged
saghul merged 1 commit intomasterfrom
refactor-error
Feb 20, 2023
Merged

core: refactor error interface#375
saghul merged 1 commit intomasterfrom
refactor-error

Conversation

@saghul
Copy link
Copy Markdown
Owner

@saghul saghul commented Feb 20, 2023

  • Add Error.prototype.code which returns the error code as a string, like Node. ("EINVAL" for example).
  • Move all errno constants to tjs.errors.
  • Move strerror to tjs.errors.

- Add Error.prototype.code which returns the error code as a string,
  like Node. ("EINVAL" for example).
- Move all errno constants to `tjs.errors`.
- Move `strerror` to `tjs.errors`.
@saghul saghul merged commit da8ca0e into master Feb 20, 2023
@saghul saghul deleted the refactor-error branch February 20, 2023 10:10
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