Skip to content

Commit 0625596

Browse files
committed
Store the inner exception. Fixes #575
1 parent 3619321 commit 0625596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MySqlConnector/MySql.Data.MySqlClient/MySqlException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ internal MySqlException(int errorNumber, string sqlState, string message, Except
3333
internal static MySqlException CreateForTimeout() => CreateForTimeout(null);
3434

3535
internal static MySqlException CreateForTimeout(Exception innerException) =>
36-
new MySqlException((int) MySqlErrorCode.CommandTimeoutExpired, null, "The Command Timeout expired before the operation completed.");
36+
new MySqlException((int) MySqlErrorCode.CommandTimeoutExpired, null, "The Command Timeout expired before the operation completed.", innerException);
3737
}
3838
}

0 commit comments

Comments
 (0)