Skip to content

Commit a143e6b

Browse files
committed
📦 build: dist files
1 parent 92c4dff commit a143e6b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/commands/push.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ exports.handler = async (args) => {
7676
console.log(e.message);
7777
return;
7878
}
79-
const provider = ProviderFactory(conf);
80-
const ret = await provider.push(resource, args.dryRun);
81-
if (ret) {
79+
try {
80+
const provider = ProviderFactory(conf);
81+
await provider.push(resource, args.dryRun);
8282
// TODO: should refactor console message
8383
console.log('push success');
8484
}
85-
else {
85+
catch (e) {
8686
// TODO: should refactor console message
87-
console.error('push fail');
87+
console.error('push fail', e);
8888
}
8989
};
9090
function loadProvider(provider) {

0 commit comments

Comments
 (0)