Error messages not displayed properly on node 7
Closed this issue · 5 comments
dhinus commented
description
When a validation fails, instead of seeing a nice error message, I see this:
TypeError: Invalid property descriptor. Cannot both specify accessors and a value or writable attribute, #<Object>
at Function.defineProperty (<anonymous>)
at new ErrorEXError (/usr/local/lib/node_modules/smooth-release/node_modules/error-ex/index.js:79:10)
how to reproduce
- use
node@7
- generate an error condition, e.g. logout from npm or create an untracked file
FrancescoCioria commented
@dhinus I'm having trouble reproducing this.
I always see the error correctly:
can you tell me:
- which validation was failing?
- which version of node where you using?
FrancescoCioria commented
I found this: https://github.com/Qix-/node-error-ex/issues/6
It looks like it could be error-ex
's fault... we may consider reverting #59
UPDATE: yes, it's error-x
's fault, but it happens only on node@7
dhinus commented
I was indeed using node@7
. We can wait a bit and see if Qix-/node-error-ex#6 gets fixed.
sindresorhus commented
We can wait a bit and see if Qix-/node-error-ex#6 gets fixed.
It's fixed.
FrancescoCioria commented
Yes, tested and it works :)
Thank you!
PS: we don't need to change anything as smooth-release
requires error-ex@^1.3.0
which will automatically install the current 1.3.0
version