Closed codeBelt closed 4 years ago
I found some "problems" that I had fixed in my previous closed pr.
@knona Thanks for the feedback.
UnhandledPromiseRejectionWarning
issue and cleaned up how errors are displayed.I don't understand the following. It should display an error if the command line has the same string replacers in command line and not work.
- If you define many times the same string replacer in command line, it doesn't work
The user should see this error:
We talked about that with @ccheney. We could imagine that we take the last value defined of the string replacer. To me, both behavior are correct.
I readed your last commit. I saw you use the process.exit() function. Why don't you catch the errors with a try / catch ?
From what I know using the exit function is not recommended.
Ok, I changed the process.exit()
to a try/catch
. Thanks @knona for reviewing this.
We could imagine that we take the last value defined of the string replacer.
@knona to make things easier we should just error and have the user fix their mistake then trying to fix it for them.
We could imagine that we take the last value defined of the string replacer.
@knona to make things easier we should just error and have the user fix their mistake then trying to fix it for them.
I agree.
41
31