Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 641a7fb

Browse files
committed
Correct exception type.
1 parent eb423e5 commit 641a7fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.AspNet.Owin/WebSockets/WebSocketAdapter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ await _webSocket.CloseAsync(_webSocket.CloseStatus ?? WebSocketCloseStatus.Norma
134134
_webSocket.Abort();
135135
break;
136136
default:
137-
throw new ArgumentOutOfRangeException(nameof(_webSocket.State), _webSocket.State, string.Empty);
137+
throw new NotSupportedException($"Unsupported {nameof(WebSocketState)} value: {_webSocket.State}.");
138138
}
139139
}
140140

0 commit comments

Comments
 (0)