Skip to content

Commit 47ee138

Browse files
committed
chore: error logging
1 parent 9da6168 commit 47ee138

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

api/scripts/dump.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async function main () {
4949
} catch (fsErr) {
5050
// nothing
5151
}
52-
console.log('dump failed')
52+
console.log('dump failed', err)
5353
throw err
5454
}
5555
}

api/scripts/restore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async function main () {
2121
title: `ATTENTION ! Restauration de "${process.argv[2]}/${process.argv[3]}" a échoué`,
2222
body: `Démarrée le ${start.format('LL')} à ${start.format('LT')}.`
2323
})
24-
console.log('restore failed')
24+
console.log('restore failed', err)
2525
throw err
2626
}
2727
}

0 commit comments

Comments
 (0)