From aa929f6b2615ea66dc96b3daf8c505fa3c2d7388 Mon Sep 17 00:00:00 2001 From: jbion Date: Mon, 19 Dec 2016 02:35:57 +0100 Subject: Improve error output --- src/main/resources/static/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/resources') diff --git a/src/main/resources/static/app.js b/src/main/resources/static/app.js index b1881357..ace23fdb 100644 --- a/src/main/resources/static/app.js +++ b/src/main/resources/static/app.js @@ -19,7 +19,8 @@ function connect() { console.log('Connected: ' + frame); stompClient.subscribe('/user/queue/errors', function (msg) { - console.error(msg.body); + var error = JSON.parse(msg.body); + console.error(error); }); stompClient.subscribe('/topic/games', function (msg) { -- cgit