Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(690)

Unified Diff: Source/modules/websockets/WebSocket.cpp

Issue 14657008: Make websocket error messages look better at the devtools console. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: cleanup Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/websockets/WebSocket.cpp
diff --git a/Source/modules/websockets/WebSocket.cpp b/Source/modules/websockets/WebSocket.cpp
index 77ad3f144c81cebe4ec97d4f75f2e0efd081bb84..4163320970914459d935fd1a3bb6e287a66655f1 100644
--- a/Source/modules/websockets/WebSocket.cpp
+++ b/Source/modules/websockets/WebSocket.cpp
@@ -392,7 +392,7 @@ void WebSocket::closeInternal(int code, const String& reason, ExceptionCode& ec)
return;
if (m_state == CONNECTING) {
m_state = CLOSING;
- m_channel->fail("WebSocket is closed before the connection is established.");
+ m_channel->fail("WebSocket is closed before the connection is established.", WarningMessageLevel);
return;
}
m_state = CLOSING;

Powered by Google App Engine
This is Rietveld 408576698