Unverified Commit dc814db2 authored by Bradley Hilton's avatar Bradley Hilton
Browse files

Prevent against 'message' of undefined'

parent 01233cc3
......@@ -65,7 +65,7 @@ export default class Create extends Command {
try {
await fd.readInfoFile();
} catch (e) {
this.error(e.message);
this.error(e && e.message ? e.message : e);
return;
}
......
......@@ -41,7 +41,7 @@ export default class Deploy extends Command {
try {
await fd.readInfoFile();
} catch (e) {
this.error(e.message);
this.error(e && e.message ? e.message : e);
return;
}
......
......@@ -32,7 +32,7 @@ export default class Package extends Command {
try {
await fd.readInfoFile();
} catch (e) {
this.error(e.message);
this.error(e && e.message ? e.message : e);
return;
}
......
......@@ -36,7 +36,7 @@ export default class Submit extends Command {
try {
await fd.readInfoFile();
} catch (e) {
this.error(e.message);
this.error(e && e.message ? e.message : e);
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment