File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
lib/interface/cli/commands/hybrid Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1+ const Promise = require ( 'bluebird' ) ;
2+ const { to } = require ( './../../../../logic/cli-config/errors/awaitTo' ) ;
3+
14async function create ( installer , event ) {
2- const res = await installer . createNewInstallationProgress ( event ) ;
5+ const [ err , res ] = await to ( installer . createNewInstallationProgress ( event ) ) ;
6+ if ( err ) {
7+ return { } ;
8+ }
39 return res . progress ;
410}
511
612function buildReporter ( installer , progress ) {
713 return {
8- report : ( event , status , options = { } ) => {
14+ report : async ( event , status , options = { } ) => {
15+ if ( ! progress . id ) {
16+ return Promise . resolve ( ) ;
17+ }
918 const data = {
1019 event,
1120 content : {
Original file line number Diff line number Diff line change 11{
22 "name" : " codefresh" ,
3- "version" : " 0.63.2 " ,
3+ "version" : " 0.63.3 " ,
44 "description" : " Codefresh command line utility" ,
55 "main" : " index.js" ,
66 "preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments