File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,9 @@ async function handlePromptSuggestions(req, res) {
7070 } ) ;
7171 } catch ( error ) {
7272 req . log . warn ( error ) ;
73- res
74- . status ( 500 )
75- . json ( { error : 'Failed to fetch AI chat data.' + escape ( req . id ) } ) ;
73+ res . status ( 500 ) . json ( {
74+ error : 'Failed to fetch AI chat data. Request ID: ' + escape ( req . id ) ,
75+ } ) ;
7676 }
7777}
7878
@@ -156,15 +156,15 @@ async function handleChatMessage(req, res) {
156156 } catch ( error ) {
157157 if ( ! res . headersSent ) {
158158 req . log . warn ( error ) ;
159- res
160- . status ( 500 )
161- . json ( { error : 'Failed to fetch AI chat data.' + escape ( req . id ) } ) ;
159+ res . status ( 500 ) . json ( {
160+ error : 'Failed to fetch AI chat data. Request ID: ' + escape ( req . id ) ,
161+ } ) ;
162162 } else {
163163 setTimeout ( ( ) => {
164164 req . log . warn ( error ) ;
165- res
166- . status ( 500 )
167- . json ( { error : 'Failed to fetch AI chat data.' + escape ( req . id ) } ) ;
165+ res . status ( 500 ) . json ( {
166+ error : 'Failed to fetch AI chat data. Request ID: ' + escape ( req . id ) ,
167+ } ) ;
168168 } , 500 ) ;
169169 }
170170 }
You can’t perform that action at this time.
0 commit comments