feat: display stack trace on winston.error

This commit is contained in:
Barış Soner Uşaklı
2020-06-20 23:32:12 -04:00
parent 55f8f99bcd
commit e80379dc0e
31 changed files with 43 additions and 44 deletions

View File

@@ -67,10 +67,9 @@ async function getNotices() {
async function getLatestVersion() {
try {
const result = await versions.getLatestVersion();
return result;
return await versions.getLatestVersion();
} catch (err) {
winston.error('[acp] Failed to fetch latest version', err);
winston.error('[acp] Failed to fetch latest version', err.stack);
}
return null;
}