Correct exception type.

This commit is contained in:
Chris R 2015-06-25 12:20:53 -07:00
parent eb423e57d6
commit 641a7fb82b
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ namespace Microsoft.AspNet.Owin
_webSocket.Abort();
break;
default:
throw new ArgumentOutOfRangeException(nameof(_webSocket.State), _webSocket.State, string.Empty);
throw new NotSupportedException($"Unsupported {nameof(WebSocketState)} value: {_webSocket.State}.");
}
}