From 80f07e0c43884265d082afe12d1a58ad880e2c32 Mon Sep 17 00:00:00 2001 From: Les De Ridder Date: Thu, 16 Jun 2016 20:48:58 +0200 Subject: Fix error response description The error reason is called 'description' in the response, not 'reason'. --- js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index ed2861d..054644b 100644 --- a/js/app.js +++ b/js/app.js @@ -60,7 +60,7 @@ document.addEventListener('DOMContentLoaded', function() { link.href = response.files[0].url; url.appendChild(link); } else { - bar.innerHTML = 'Error: ' + response.reason; + bar.innerHTML = 'Error: ' + response.description; } } else if (respStatus === 413) { link.textContent = 'File Too big!'; -- cgit v1.2.3