mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-22 07:18:26 +02:00
Improve error handling
This commit is contained in:
10 files changed
+72
-12
No files matched your search
@@ -163,7 +163,7 @@ export default class S3Storage extends StorageBase {
|
||||
if (!res) {
|
||||
throw new AnonymousError("file_not_found", {
|
||||
httpStatus: 404,
|
||||
object: join(this.repoPath(repoId), path),
|
||||
url: join(this.repoPath(repoId), path),
|
||||
});
|
||||
}
|
||||
return res as Readable;
|
||||
|
||||
Reference in new issue
Block a user