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
+
1
4
async 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
+ }
3
9
return res . progress ;
4
10
}
5
11
6
12
function buildReporter ( installer , progress ) {
7
13
return {
8
- report : ( event , status , options = { } ) => {
14
+ report : async ( event , status , options = { } ) => {
15
+ if ( ! progress . id ) {
16
+ return Promise . resolve ( ) ;
17
+ }
9
18
const data = {
10
19
event,
11
20
content : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.63.2 " ,
3
+ "version" : " 0.63.3 " ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments