Fix update log error message

This commit is contained in:
Rob Garrison 2018-11-28 18:07:05 -06:00
parent 43a4671c64
commit eafa5110c0

View File

@ -134,6 +134,10 @@
});
}
error = error === 0 ? 'server unreachable' : error;
// UserCSS metadata error returns an object; e.g. "Invalid @var color..."
if (typeof error === 'object' && error.message) {
error = error.message;
}
log(STATES.SKIPPED + ` (${error}) #${style.id} ${style.name}`);
const info = {error, STATES, style: getStyleWithNoCode(style)};
if (port) port.postMessage(info);