diff --git a/src/app.controller.ts b/src/app.controller.ts index 1b0eb83..6a774bf 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -55,8 +55,10 @@ export class AppController { Key: pkg, Range: range, } as GetObjectCommandInput); - if (!output || !output.Body) + if (!output || !output.Body) { + console.log(`No such file '${pkg}'`); throw new HttpException(`No such file '${pkg}'`, HttpStatus.NOT_FOUND); + } if (range !== undefined) { res.set('Content-Length', `${output.ContentLength}`);