Skip to content

Commit c344032

Browse files
committed
Throw the exception.
Signed-off-by: Bradley Grainger <[email protected]>
1 parent 2b3765f commit c344032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MySqlConnector/MySqlCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ internal async ValueTask<MySqlDataReader> ExecuteReaderAsync(CommandBehavior beh
362362
internal async ValueTask<MySqlDataReader> ExecuteReaderNoResetTimeoutAsync(CommandBehavior behavior, IOBehavior ioBehavior, CancellationToken cancellationToken)
363363
{
364364
if (!IsValid(out var exception))
365-
return await ValueTaskExtensions.FromException<MySqlDataReader>(exception).ConfigureAwait(false);
365+
throw exception;
366366

367367
if (((IMySqlCommand) this).TryGetPreparedStatements() is { Statements.Count: 1 } statements)
368368
{

0 commit comments

Comments
 (0)