Skip to content

Commit

Permalink
Improve exception message for unsupported type. Fixes #925
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrainger committed Jan 16, 2021
1 parent 38dbebd commit c326195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MySqlConnector/MySqlParameter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ internal void AppendSqlString(ByteBufferWriter writer, StatementPreparerOptions
}
else
{
throw new NotSupportedException("Parameter type {0} (DbType: {1}) not currently supported. Value: {2}".FormatInvariant(Value.GetType().Name, DbType, Value));
throw new NotSupportedException("Parameter type {0} is not supported; see https://fl.vu/mysql-param-type. Value: {1}".FormatInvariant(Value.GetType().Name, Value));
}
}

Expand Down Expand Up @@ -616,7 +616,7 @@ internal void AppendBinary(ByteBufferWriter writer, StatementPreparerOptions opt
}
else
{
throw new NotSupportedException("Parameter type {0} (DbType: {1}) not currently supported. Value: {2}".FormatInvariant(Value.GetType().Name, DbType, Value));
throw new NotSupportedException("Parameter type {0} is not supported; see https://fl.vu/mysql-param-type. Value: {1}".FormatInvariant(Value.GetType().Name, Value));
}
}

Expand Down

0 comments on commit c326195

Please sign in to comment.