We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98e34e8 commit ed9cea8Copy full SHA for ed9cea8
1 file changed
OpenFlowNodeRED/src/nodered/nodes/NoderedUtil.ts
@@ -48,6 +48,9 @@ export class NoderedUtil {
48
public static HandleError(node: Red, error: any): void {
49
console.error(error);
50
var message: string = error;
51
+ if (typeof error === "string" || error instanceof String) {
52
+ error = new Error((error as string));
53
+ }
54
try {
55
if (error.message) {
56
message = error.message;
0 commit comments