mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-24 22:11:03 +02:00
Standardize error responses with consistent format and human-readable messages (#667)
This commit is contained in:
@@ -127,7 +127,7 @@ export default class S3Storage extends StorageBase {
|
||||
}
|
||||
} catch {
|
||||
try {
|
||||
res.status(500);
|
||||
res.status(500).json({ error: "file_not_found" });
|
||||
} catch (err) {
|
||||
console.error(`[ERROR] S3 send ${path}`, err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user