The current error message in node is displayed as a string, which needs to be changed to the form of `{kind, message}`