Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 1336536

Browse files
committed
include StackTrace with connection error Exception
1 parent 666b2b7 commit 1336536

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ServiceStack.Redis/RedisNativeClient_Utils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ private RedisException CreateConnectionError(Exception originalEx)
328328
var throwEx = new RedisException(string.Format("[{0}] Unable to Connect: sPort: {1}{2}",
329329
DateTime.UtcNow.ToString("HH:mm:ss.fff"),
330330
clientPort,
331-
originalEx != null ? ", Error: " + originalEx.Message : ""),
332-
lastSocketException);
331+
originalEx != null ? ", Error: " + originalEx.Message + "\n" + originalEx.StackTrace : ""),
332+
originalEx ?? lastSocketException);
333333
log.Error(throwEx.Message);
334334
throw throwEx;
335335
}

0 commit comments

Comments
 (0)