File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 node-version : 20
1717 cache : npm
1818 - run : npm ci
19+ - run : npm run lint
1920 - run : npm run build
2021 - run : npm test
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ Please review urgently.
141141 } catch ( err ) {
142142 console . error ( "process-response error:" , err ) ;
143143 return new Response (
144- JSON . stringify ( { error : err . message } ) ,
144+ JSON . stringify ( { error : err instanceof Error ? err . message : String ( err ) } ) ,
145145 { status : 500 , headers : { ...corsHeaders , "Content-Type" : "application/json" } }
146146 ) ;
147147 }
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ If this is a medical emergency call 999.
115115 } catch ( err ) {
116116 console . error ( "trigger-followup error:" , err ) ;
117117 return new Response (
118- JSON . stringify ( { error : err . message } ) ,
118+ JSON . stringify ( { error : err instanceof Error ? err . message : String ( err ) } ) ,
119119 { status : 500 , headers : { ...corsHeaders , "Content-Type" : "application/json" } }
120120 ) ;
121121 }
You can’t perform that action at this time.
0 commit comments