Feature request: emit user-friendly error message for invalid number input
- Dominant language
- JavaScript
- Stars
- 35.8k
- Forks
- 4.1k
- Avg merge
- 2d 26m
- Merged PRs (30d)
- 33
Description
**Is your feature request related to a problem? Please describe.**
In current version (9.55.0), entering strings that cannot be converted to a number to an argument with "number" type yields a result `[object Object]`.
For example, you can see this by adding a "Head" operation and entering "hoge" to the "Number" field.
**Describe the solution you'd like**
Instead of `[object Object]`, an user-friendly error message should appear.
An example of expected messages is "A value of number arguments is invalid."
**Additional context**
Information on the "REPORT A BUG" tab:
* Version: 9.55.0
* Compile time: 09/12/2022 11:42:13 UTC
* User-Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0
* [Link to reproduce](https://gchq.github.io/CyberChef/#recipe=Head('Line%20feed',null))
Contributor guide
Research direction
Start with the linked CyberChef recipe using the Head operation and invalid "hoge" input, then trace how number arguments are validated and how the resulting error is rendered. Done means invalid number input produces a user-friendly message instead of "[object Object]".
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100