Comments (5)
Are we having it as a parameter so that we can control this functionality?
Yes, read the issue title.
Maybe just {reject: false}
.
from execa.
Why can't we use the catch
method upon rejection of our promises? That can be used to display results such as linter issues. Am I missing out on something?
from execa.
@mbad0la That works, but it's more verbose when using async functions as you need to wrap it in a try/catch. Example:
Lines 26 to 30 in 9345d2c
from execa.
@sindresorhus I get it and I do support this functionality. Are we having it as a parameter so that we can control this functionality?
Btw, What do you think about the name overrideReject
? Personally, the rejection is not an error as we might get our desired behaviour through catch
as I mentioned earlier. So having the word Error in the option is maybe not that correct. What do you think about this?
from execa.
My bad, sorry about the question. reject
works with me.
from execa.
Related Issues (20)
- Document idiomatic ternary interpolation pattern? HOT 2
- TypeError: The "eventTargets" argument must be an instance of EventEmitter or EventTarget. Received an instance of AbortSignal HOT 7
- Feature request: Possibility to use a custom verbose log format? HOT 5
- stdout/stderr with 'inherit' + transform should not capture output HOT 2
- Unable to extend env when `ProcessEnv` has been manipulated HOT 7
- Typescript: Verbose option type mismatch? HOT 2
- Memory Leak of pipe HOT 3
- `parseCommandString()` splits at whitespace inside quotes HOT 3
- Timeout / cancel stuck process HOT 4
- The command cannot be executed HOT 1
- Intl needed for v. 9 HOT 10
- Error: Premature close HOT 23
- Small package alternative to Execa HOT 9
- Add a link to `nano-spawn`
- How to get both live and programmatic output? HOT 3
- How to stop execa from escaping? HOT 6
- Documentation markup problem in `execa/docs/api.md` HOT 3
- Intellisense isn't working as expected on execa Options HOT 7
- How to prevent broken pipe (SIGPIPE) HOT 3
- How do I fix ERR_PACKAGE_PATH_NOT_EXPORTED ? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from execa.