logs: use %o to format error
otherwise, they are printed as multi-line and this messes up tail+date formatting
This commit is contained in:
@@ -95,8 +95,8 @@ async function checkForUpdates(options) {
|
||||
assert.strictEqual(typeof options, 'object');
|
||||
|
||||
const [boxError] = await safe(checkBoxUpdates(options));
|
||||
if (boxError) debug('checkForUpdates: error checking for box updates:', boxError);
|
||||
if (boxError) debug('checkForUpdates: error checking for box updates: %o', boxError);
|
||||
|
||||
const [appError] = await safe(checkAppUpdates(options));
|
||||
if (appError) debug('checkForUpdates: error checking for app updates:', appError);
|
||||
if (appError) debug('checkForUpdates: error checking for app updates: %o', appError);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user