Skip to content

Commit 5d12081

Browse files
authored
Fix some console coloring messages (#1941)
Applies to #430 Auto-merge
1 parent affaf2e commit 5d12081

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ function tripServerOnCertExpire(aValidToString, aStayResident) {
552552
// so must conclude with server trip
553553

554554
} catch (aE) {
555-
console.error(colors.red('Error renaming expiring certificate', aE.code));
555+
console.error(colors.red('Error renaming expiring certificate ' + aE.code));
556556
}
557557
} else if (isSecured) {
558558
console.warn(colors.cyan('Attempting to renew expiring certificate'));
@@ -562,7 +562,7 @@ function tripServerOnCertExpire(aValidToString, aStayResident) {
562562
trippy = true;
563563

564564
} catch (aE) {
565-
console.warn(colors.red('Error renewing expiring certificate', aE.code));
565+
console.warn(colors.red('Error renewing expiring certificate ' + aE.code));
566566
}
567567
}
568568

controllers/scriptStorage.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ if (isSecured) {
214214
try {
215215
meta = JSON.parse(aBody);
216216
} catch (aE) {
217-
console.error(colors.red('Error retrieving GitHub `hooks`', aE));
217+
console.error(colors.red('Error retrieving GitHub `hooks` ' + aE));
218218
return;
219219
}
220220

@@ -224,7 +224,8 @@ if (isSecured) {
224224
githubHookAddresses.push(aEl);
225225
} else {
226226
console.warn(
227-
colors.yellow('GitHub `hooks` element', aEl, 'does not match IPv4 CIDR specification')
227+
colors.yellow('GitHub `hooks` element ' + aEl +
228+
' does not match IPv4 CIDR specification')
228229
);
229230
}
230231
});

0 commit comments

Comments
 (0)