CB-14158: Refactor device to remove Q

This commit is contained in:
Gearoid M
2018-07-03 10:34:31 +09:00
parent ca8931c8af
commit bd07907a4c
3 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ if (args.length > 2) {
var install_target;
if (args[2].substring(0, 9) === '--target=') {
install_target = args[2].substring(9, args[2].length);
device.install(install_target).done(null, function (err) {
device.install(install_target).catch(function (err) {
console.error('ERROR: ' + err);
process.exit(2);
});
@@ -35,7 +35,7 @@ if (args.length > 2) {
process.exit(2);
}
} else {
device.install().done(null, function (err) {
device.install().catch(function (err) {
console.error('ERROR: ' + err);
process.exit(2);
});