Show error in tooltip (#566)
* Show error in tooltip * Move error.message check
This commit is contained in:
parent
df2b08a75a
commit
99951efc80
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user