Skip to content

Commit 41e79c6

Browse files
Not changing error message + fix error 40
1 parent 38b3a8c commit 41e79c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNINpHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public SNINpHandle(string serverName, string pipeName, long timerExpire)
8484

8585
if (!_pipeStream.IsConnected || !_pipeStream.CanWrite || !_pipeStream.CanRead)
8686
{
87-
SNICommon.ReportSNIError(SNIProviders.NP_PROV, 0, SNICommon.ConnOpenFailedError, Strings.SNI_ERROR_1);
87+
SNICommon.ReportSNIError(SNIProviders.NP_PROV, 0, SNICommon.ConnOpenFailedError, Strings.SNI_ERROR_40);
8888
_status = TdsEnums.SNI_ERROR;
8989
SqlClientEventSource.Log.TrySNITraceEvent("<sc.SNI.SNINpHandle.SNINpHandle |SNI|ERR> Pipe stream is not connected or cannot write or read to/from it.");
9090
return;

src/Microsoft.Data.SqlClient/netcore/src/Resources/Strings.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@
931931
<value>Associating port with I/O completion mechanism failed</value>
932932
</data>
933933
<data name="SNI_ERROR_11" xml:space="preserve">
934-
<value>Connection timed out.</value>
934+
<value>Timeout error</value>
935935
</data>
936936
<data name="SNI_ERROR_12" xml:space="preserve">
937937
<value>No server name supplied</value>

0 commit comments

Comments
 (0)