Chore: more verbose and bump version
All checks were successful
Build and push image / release-image (push) Successful in 1m27s

This commit is contained in:
2025-07-27 21:47:35 +08:00
parent 4d7049a30a
commit 143e6747cc

View File

@@ -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}`);