File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ console.log(`Cloning the repository to "${config.folder}" folder...`);
41
41
try {
42
42
execSync ( `git clone -b ${ config . branch } ${ config . repository } ${ config . folder } 2>&1` , { cwd } ) ;
43
43
} catch ( e ) {
44
- throw Error ( 'Failed to clone. '
45
- + `Check the repository name, permissions to clone and the absence of " ${ config . folder } " folder.` ) ;
44
+ console . error ( 'Failed to clone. An original error is thrown below.' ) ;
45
+ throw Error ( e ) ;
46
46
}
47
47
48
48
@@ -67,7 +67,8 @@ if (config.beforePushScript) {
67
67
${ config . beforePushScript }
68
68
` , { cwd } ) ;
69
69
} catch ( e ) {
70
- throw Error ( 'Failed to run beforePushScript.' ) ;
70
+ console . error ( 'Failed to run beforePushScript. An original error is thrown below.' ) ;
71
+ throw Error ( e ) ;
71
72
}
72
73
}
73
74
78
79
git push --tags ${ config . repository } ${ config . branch } 2>&1
79
80
` , { cwd } ) ;
80
81
} catch ( e ) {
81
- throw Error ( 'Failed to push.' ) ;
82
+ console . error ( 'Failed to push. An original error is thrown below.' ) ;
83
+ throw Error ( e ) ;
82
84
}
83
85
84
86
You can’t perform that action at this time.
0 commit comments