Skip to content

Commit

Permalink
Log wizard error if in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Aug 31, 2020
1 parent 2445db6 commit 8102e87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ const list = async conf => {
userId = device.uid;
foundAPIRegion = region;
}
} catch {
} catch (error) {
if (process.env.DEBUG) {
console.error(error);
}

console.error(colors.red('There was an issue fetching that device. Make sure your account is linked and the ID is correct.'));

// eslint-disable-next-line unicorn/no-process-exit
Expand Down

0 comments on commit 8102e87

Please sign in to comment.