mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix node.error() not printing when passed false (#1037)
This should fix #1036
This commit is contained in:
parent
9a4ff5cb43
commit
0a5a42b32a
@ -236,7 +236,9 @@ Node.prototype.warn = function(msg) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Node.prototype.error = function(logMessage,msg) {
|
Node.prototype.error = function(logMessage,msg) {
|
||||||
|
if (typeof logMessage != 'boolean') {
|
||||||
logMessage = logMessage || "";
|
logMessage = logMessage || "";
|
||||||
|
}
|
||||||
log_helper(this, Log.ERROR, logMessage);
|
log_helper(this, Log.ERROR, logMessage);
|
||||||
/* istanbul ignore else */
|
/* istanbul ignore else */
|
||||||
if (msg) {
|
if (msg) {
|
||||||
|
Loading…
Reference in New Issue
Block a user