mirror of
https://github.com/jech/galene.git
synced 2024-12-22 23:35:46 +01:00
Format error messages on the client side.
This commit is contained in:
parent
c441b49d26
commit
e19d704a0a
2 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ func errorToWSCloseMessage(err error) (string, []byte) {
|
|||
default:
|
||||
code = websocket.CloseInternalServerErr
|
||||
}
|
||||
return "The server said: " + text, websocket.FormatCloseMessage(code, text)
|
||||
return text, websocket.FormatCloseMessage(code, text)
|
||||
}
|
||||
|
||||
func isWSNormalError(err error) bool {
|
||||
|
|
|
@ -344,7 +344,7 @@ function serverConnect() {
|
|||
/* nothing */
|
||||
break;
|
||||
case 'error':
|
||||
displayError(m.value);
|
||||
displayError('The server said: ' + m.value);
|
||||
break;
|
||||
default:
|
||||
console.warn('Unexpected server message', m.type);
|
||||
|
|
Loading…
Reference in a new issue