Browse Source

Optimize error message

pull/19/head
sunkaixuan 2 years ago
parent
commit
6d84d85eaa
  1. 9
      Src/Asp.Net/SqlSugar/Realization/MySql/MySqlProvider.cs

9
Src/Asp.Net/SqlSugar/Realization/MySql/MySqlProvider.cs

@ -29,7 +29,14 @@ namespace SqlSugar
}
catch (Exception ex)
{
Check.Exception(true, ErrorMessage.ConnnectionOpen, ex.Message);
if (ex is SqlSugarException)
{
throw ex;
}
else
{
Check.Exception(true, ErrorMessage.ConnnectionOpen, ex.Message);
}
}
}
return base._DbConnection;

Loading…
Cancel
Save