diff --git a/front/src/css/main.css b/front/src/css/main.css index bc9cb47..fed5912 100644 --- a/front/src/css/main.css +++ b/front/src/css/main.css @@ -198,6 +198,9 @@ a.linkButton { .screenshotWrapper .screenshotImage { width: 100%; } +.screenshotWrapper .screenshotError { + color: #fff; +} .screenshotWrapper.desktop { border: 0.2em solid #AAA; padding: 0.5em; diff --git a/front/src/less/main.less b/front/src/less/main.less index bf52219..ff5d31c 100644 --- a/front/src/less/main.less +++ b/front/src/less/main.less @@ -139,6 +139,10 @@ a.linkButton { .screenshotImage { width: 100%; } + + .screenshotError { + color: #fff; + } } .screenshotWrapper.desktop { diff --git a/front/src/views/dashboard.html b/front/src/views/dashboard.html index 5b4455e..fa97376 100644 --- a/front/src/views/dashboard.html +++ b/front/src/views/dashboard.html @@ -13,7 +13,8 @@
- + + Screenshot not available
diff --git a/front/src/views/screenshot.html b/front/src/views/screenshot.html index e2be19e..7f4de0d 100644 --- a/front/src/views/screenshot.html +++ b/front/src/views/screenshot.html @@ -4,7 +4,8 @@
- + + Screenshot not available
diff --git a/lib/server/controllers/apiController.js b/lib/server/controllers/apiController.js index 27e1adf..501c786 100644 --- a/lib/server/controllers/apiController.js +++ b/lib/server/controllers/apiController.js @@ -109,8 +109,14 @@ var ApiController = function(app) { } }) + // Delete screenshot temporary file - .then(screenshot.deleteTmpFile); + .then(screenshot.deleteTmpFile) + + // Don't worry if there's an error + .fail(function(err) { + debug('An error occured while creating the screenshot\'s thumbnail. Ignoring and continuing...'); + }); }