js/main: Use warning log level for notifyError

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/697>
This commit is contained in:
Marco Trevisan (Treviño) 2019-09-02 16:44:37 +02:00 committed by Marge Bot
parent 1bd9076590
commit 71765a1056

View File

@ -504,9 +504,9 @@ function notify(msg, details) {
function notifyError(msg, details) {
// Also print to stderr so it's logged somewhere
if (details)
log(`error: ${msg}: ${details}`);
console.warn(`error: ${msg}: ${details}`);
else
log(`error: ${msg}`);
console.warn(`error: ${msg}`);
notify(msg, details);
}