Skip to content

Commit 8102e87

Browse files
committed
Log wizard error if in debug mode
1 parent 2445db6 commit 8102e87

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/wizard.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ const list = async conf => {
7777
userId = device.uid;
7878
foundAPIRegion = region;
7979
}
80-
} catch {
80+
} catch (error) {
81+
if (process.env.DEBUG) {
82+
console.error(error);
83+
}
84+
8185
console.error(colors.red('There was an issue fetching that device. Make sure your account is linked and the ID is correct.'));
8286

8387
// eslint-disable-next-line unicorn/no-process-exit

0 commit comments

Comments
 (0)