From 99951efc80b3a9e5a592dc08a0256fa558de1e0f Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Mon, 19 Nov 2018 22:55:38 -0600 Subject: [PATCH] Show error in tooltip (#566) * Show error in tooltip * Move error.message check --- manage/updater-ui.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manage/updater-ui.js b/manage/updater-ui.js index 038eb774..5141969b 100644 --- a/manage/updater-ui.js +++ b/manage/updater-ui.js @@ -148,6 +148,9 @@ function reportUpdateState({updated, style, error, STATES}) { error = t('updateCheckSkippedLocallyEdited') + '\n' + t('updateCheckManualUpdateHint'); } else if (error === STATES.MAYBE_EDITED) { error = t('updateCheckSkippedMaybeLocallyEdited') + '\n' + t('updateCheckManualUpdateHint'); + } else if (typeof error === 'object' && error.message) { + // UserCSS meta errors provide an object + error = error.message; } const message = same ? t('updateCheckSucceededNoUpdate') : error; newClasses.set('no-update', true);