Chore: more verbose and bump version
All checks were successful
Build and push image / release-image (push) Successful in 1m27s
All checks were successful
Build and push image / release-image (push) Successful in 1m27s
This commit is contained in:
@@ -55,8 +55,10 @@ export class AppController {
|
|||||||
Key: pkg,
|
Key: pkg,
|
||||||
Range: range,
|
Range: range,
|
||||||
} as GetObjectCommandInput);
|
} 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);
|
throw new HttpException(`No such file '${pkg}'`, HttpStatus.NOT_FOUND);
|
||||||
|
}
|
||||||
|
|
||||||
if (range !== undefined) {
|
if (range !== undefined) {
|
||||||
res.set('Content-Length', `${output.ContentLength}`);
|
res.set('Content-Length', `${output.ContentLength}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user