use debug instead of console.error

This commit is contained in:
Girish Ramakrishnan
2023-04-30 21:49:28 +02:00
parent 883915c9d3
commit 057e4db6c1
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -342,7 +342,7 @@ async function getBlockDevices() {
try {
info = JSON.parse(execSync('lsblk --paths --json --list --fs', { encoding: 'utf8' }));
} catch (e) {
console.error('Failed to list disks:', e);
debug('Failed to list disks:', e);
throw new BoxError(BoxError.INTERNAL_ERROR, e);
}