Skip to content

Commit f310e22

Browse files
committed
fix: do not throw on empty package
Users still see a message and can get to the settings.
1 parent 502e89d commit f310e22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/upload/helpers/handleUpload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default async function handleUpload(
8888
} else if (packages.length > 1) {
8989
sendBundle(packages, storage, res);
9090
} else {
91-
throw NO_PACKAGE_ERROR;
91+
ErrorHandler(res, NO_PACKAGE_ERROR);
9292
}
9393
} catch (err) {
9494
captureException(err);

0 commit comments

Comments
 (0)