File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ for (const [os, arch] of targets) {
4040 await $ `tar -xf ../../node_modules/${ watcher . replace ( "@parcel/" , "parcel-" ) } -*.tgz -C ../../node_modules/${ watcher } --strip-components=1`
4141
4242 await Bun . build ( {
43+ sourcemap : true ,
4344 compile : {
4445 target : `bun-${ os } -${ arch } ` as any ,
4546 outfile : `dist/${ name } /bin/opencode` ,
Original file line number Diff line number Diff line change @@ -129,7 +129,10 @@ try {
129129 Log . Default . error ( "fatal" , data )
130130 const formatted = FormatError ( e )
131131 if ( formatted ) UI . error ( formatted )
132- if ( formatted === undefined ) UI . error ( "Unexpected error, check log file at " + Log . file ( ) + " for more details" )
132+ if ( formatted === undefined ) {
133+ UI . error ( "Unexpected error, check log file at " + Log . file ( ) + " for more details\n" )
134+ console . error ( e )
135+ }
133136 process . exitCode = 1
134137}
135138
You can’t perform that action at this time.
0 commit comments