We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92c4dff commit a143e6bCopy full SHA for a143e6b
lib/commands/push.js
@@ -76,15 +76,15 @@ exports.handler = async (args) => {
76
console.log(e.message);
77
return;
78
}
79
- const provider = ProviderFactory(conf);
80
- const ret = await provider.push(resource, args.dryRun);
81
- if (ret) {
+ try {
+ const provider = ProviderFactory(conf);
+ await provider.push(resource, args.dryRun);
82
// TODO: should refactor console message
83
console.log('push success');
84
85
- else {
+ catch (e) {
86
87
- console.error('push fail');
+ console.error('push fail', e);
88
89
};
90
function loadProvider(provider) {
0 commit comments