Closed houssemDevs closed 5 years ago
The property for the message associated with an Error object in JavaScript is err.message
, not err.error
.
I did say err.error because of this :
The word “error:” there is part of the error message. It’s not a property.
I am not sure but when I use err.message as you suggested I get the message "Concurrency problem ...... ". But the issue is solved thank you.
I will close the issue. Thank you for your help.
Hi,
I am using pg to execute a stored procedure on postegres 10, this procedure may fail and raise an exception, the exception message can not be extracted from the error (err.error 'undefined'), but can be logged on the console. when I log the error (
console.log(err);
) I see the exception message along with the stack trace, but when I log only the error message (console.log(err.error)
) I get undefined.