Skip to content

Commit e65c448

Browse files
committed
server: change file not found error to warning
1 parent 5baca32 commit e65c448

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/evolution-backend/src/apps/admin/serverApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export const setupServerApp = (app: Express, serverSetupFct?: (app: Express) =>
131131
// If pathname ends with a file extension, return 404
132132
// Files that should be served have already been handled by previous routes
133133
if (hasFileExtension({ pathname })) {
134-
console.error('Error: file not found ', pathname);
134+
console.warn('Warning: file not found ', pathname);
135135
res.status(404).sendFile(indexPath);
136136
} else {
137137
res.status(200).sendFile(indexPath);

packages/evolution-backend/src/apps/participant/serverApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export const setupServerApp = (app: Express, serverSetupFct: (() => void) | unde
133133
// If pathname ends with a file extension, return 404
134134
// Files that should be served have already been handled by previous routes
135135
if (hasFileExtension({ pathname })) {
136-
console.error('Error: file not found ', pathname);
136+
console.warn('Warning: file not found ', pathname);
137137
res.status(404).sendFile(notFound404Path);
138138
} else {
139139
res.status(200).sendFile(indexPath);

0 commit comments

Comments
 (0)