Skip to content

Commit 37bb6ef

Browse files
committed
Wrap failure with MySqlException. Fixes #434
1 parent ed05cf9 commit 37bb6ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private void ActivateResultSet(ResultSet resultSet)
100100

101101
throw mySqlException != null ?
102102
new MySqlException(mySqlException.Number, mySqlException.SqlState, mySqlException.Message, mySqlException) :
103-
resultSet.ReadResultSetHeaderException;
103+
new MySqlException("Failed to read the result set.", resultSet.ReadResultSetHeaderException);
104104
}
105105

106106
Command.LastInsertedId = resultSet.LastInsertId;

0 commit comments

Comments
 (0)