From 499b8193ab340db6c31f22844a441374b21f6c86 Mon Sep 17 00:00:00 2001 From: mikke89 Date: Fri, 21 Feb 2014 02:26:04 +0100 Subject: [PATCH] Added return message text to frontend --- couchpotato/static/scripts/misc/downloaders.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/couchpotato/static/scripts/misc/downloaders.js b/couchpotato/static/scripts/misc/downloaders.js index eee45b40..8d03c241 100644 --- a/couchpotato/static/scripts/misc/downloaders.js +++ b/couchpotato/static/scripts/misc/downloaders.js @@ -50,8 +50,10 @@ var DownloadersBase = new Class({ }).inject(button, 'after') } else { + var msg_text = 'Connection failed. Check logs for details.'; + if(json.hasOwnProperty('msg')) msg_text = json.msg; var message = new Element('span.failed', { - 'text': 'Connection failed. Check logs for details.' + 'text': msg_text }).inject(button, 'after') }