File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ export async function authedFetch(
303303 `token=${ auth } ; deno_auth_ghid=force` ,
304304 ) ;
305305
306- const url = new URL ( endpoint , context . endpoint ) ;
306+ const url = new URL ( ` ${ context . endpoint } / ${ endpoint } ` ) ;
307307
308308 let fallbackBody : ReadableStream | undefined ;
309309 if ( init . body instanceof ReadableStream ) {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export function error(
2323) : never {
2424 console . error ( ) ;
2525 console . error ( `${ red ( "✗" ) } An error occurred:` ) ;
26- console . error ( ` ${ error . replaceAll ( "\n" , "\n " ) } ` ) ;
26+ console . error ( ` ${ String ( error ?? "Unknown error" ) . replaceAll ( "\n" , "\n " ) } ` ) ;
2727 const trace = response ?. headers . get ( "x-deno-trace-id" ) ;
2828 if ( context . debug ) {
2929 console . error ( ` stack:\n${ new Error ( ) . stack } ` ) ;
You can’t perform that action at this time.
0 commit comments