File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ export async function buildToTinybird(
223223 if ( body . errors && body . errors . length > 0 ) {
224224 return body . errors . map ( e => {
225225 const prefix = e . filename ? `[${ e . filename } ] ` : '' ;
226- return `${ prefix } ${ e . error } ` ;
226+ return `${ prefix } ${ e . error ?? 'Unknown error' } ` ;
227227 } ) . join ( '\n' ) ;
228228 }
229229 return body . error || `HTTP ${ response . status } : ${ response . statusText } ` ;
Original file line number Diff line number Diff line change @@ -541,6 +541,8 @@ function createCli(): Command {
541541 output . showBuildErrors ( deploy . errors ) ;
542542 } else if ( result . error ) {
543543 output . error ( result . error ) ;
544+ } else {
545+ output . error ( "Deploy failed (no error details available, run with TINYBIRD_DEBUG=1 for more info)" ) ;
544546 }
545547 output . showDeployFailure ( ) ;
546548 process . exit ( 1 ) ;
@@ -732,6 +734,8 @@ function createCli(): Command {
732734 output . showBuildErrors ( deploy . errors ) ;
733735 } else if ( result . error ) {
734736 output . error ( result . error ) ;
737+ } else {
738+ output . error ( "Build failed (no error details available, run with TINYBIRD_DEBUG=1 for more info)" ) ;
735739 }
736740 output . showBuildFailure ( true ) ;
737741 return ;
You can’t perform that action at this time.
0 commit comments