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() {
26522652 // Fail if no Project Id is provided if not already set.
26532653 const projectIdSet = yield setupGcloud . isProjectIdSet ( ) ;
26542654 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 .' ) ;
26562656 }
26572657 // Authenticate gcloud SDK.
26582658 if ( serviceAccountKey ) {
@@ -2664,7 +2664,7 @@ function run() {
26642664 }
26652665 const authenticated = yield setupGcloud . isAuthenticated ( ) ;
26662666 if ( ! authenticated ) {
2667- core . setFailed ( 'Error authenticating the Cloud SDK.' ) ;
2667+ throw new Error ( 'Error authenticating the Cloud SDK.' ) ;
26682668 }
26692669 const toolCommand = setupGcloud . getToolCommand ( ) ;
26702670 // Create app engine gcloud cmd.
@@ -11482,9 +11482,13 @@ function isAuthenticated() {
1148211482 const stdout = ( data ) => {
1148311483 output += data . toString ( ) ;
1148411484 } ;
11485+ const stderr = ( data ) => {
11486+ output += data . toString ( ) ;
11487+ } ;
1148511488 const options = {
1148611489 listeners : {
1148711490 stdout,
11491+ stderr,
1148811492 } ,
1148911493 } ;
1149011494 const toolCommand = getToolCommand ( ) ;
You can’t perform that action at this time.
0 commit comments