Skip to content

Commit 2a035e6

Browse files
committed
Fix #6837
1 parent 5467258 commit 2a035e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Middleware/NodeServices/src/HostingModels/NodeInvocationException.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class NodeInvocationException : Exception
2626
/// <param name="message">A description of the exception.</param>
2727
/// <param name="details">Additional information, such as a Node.js stack trace, representing the exception.</param>
2828
public NodeInvocationException(string message, string details)
29-
: base(message + Environment.NewLine + details)
29+
: base(string.IsNullOrWhiteSpace(details) ? message : message + Environment.NewLine + details)
3030
{
3131
}
3232

@@ -52,4 +52,4 @@ public NodeInvocationException(string message, string details, bool nodeInstance
5252
AllowConnectionDraining = allowConnectionDraining;
5353
}
5454
}
55-
}
55+
}

0 commit comments

Comments
 (0)