liquid-labs / liquid-labs/standard-error-set
Add support for "message, options" style constructor
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Let's provide a constructor variation that fits with the standard `Error` constructor. If the first arg is a string, treat it as the message.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the standard error constructor implementation and any existing constructor tests. Check how current arguments are handled, then verify that a string first argument is used as the message while the following options are accepted, with tests covering the new form.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100