File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2652,7 +2652,7 @@ function run() {
2652
2652
// Fail if no Project Id is provided if not already set.
2653
2653
const projectIdSet = yield setupGcloud . isProjectIdSet ( ) ;
2654
2654
if ( ! projectIdSet && projectId === '' && serviceAccountKey === '' ) {
2655
- core . setFailed ( 'No project Id provided.' ) ;
2655
+ throw new Error ( 'No project Id provided. Ensure you have either project_id and/or credentials inputs are set .' ) ;
2656
2656
}
2657
2657
// Authenticate gcloud SDK.
2658
2658
if ( serviceAccountKey ) {
@@ -2664,7 +2664,7 @@ function run() {
2664
2664
}
2665
2665
const authenticated = yield setupGcloud . isAuthenticated ( ) ;
2666
2666
if ( ! authenticated ) {
2667
- core . setFailed ( 'Error authenticating the Cloud SDK.' ) ;
2667
+ throw new Error ( 'Error authenticating the Cloud SDK.' ) ;
2668
2668
}
2669
2669
const toolCommand = setupGcloud . getToolCommand ( ) ;
2670
2670
// Create app engine gcloud cmd.
@@ -11482,9 +11482,13 @@ function isAuthenticated() {
11482
11482
const stdout = ( data ) => {
11483
11483
output += data . toString ( ) ;
11484
11484
} ;
11485
+ const stderr = ( data ) => {
11486
+ output += data . toString ( ) ;
11487
+ } ;
11485
11488
const options = {
11486
11489
listeners : {
11487
11490
stdout,
11491
+ stderr,
11488
11492
} ,
11489
11493
} ;
11490
11494
const toolCommand = getToolCommand ( ) ;
You can’t perform that action at this time.
0 commit comments