{"draft":null,"from":178,"to":318,"files":[{"path":"server/src/git-pack-spool.ts","added":3,"removed":1,"diff":"--- a/server/src/git-pack-spool.ts\n+++ b/server/src/git-pack-spool.ts\n@@ -49,7 +49,7 @@\n \t\t\t\tif (!(chunk instanceof Uint8Array)) throw Error(\"invalid pack chunk\");\n \t\t\t\tfor (let at = 0; at < chunk.length; ) {\n \t\t\t\t\tconst count = Math.min(GitPackSpool.chunkBytes - used, chunk.length - at);\n-\t\t\t\t\tif (this.size + count > maxBytes) throw Error(\"pack exceeds byte limit\");\n+\t\t\t\t\tif (this.size + count > maxBytes) throw new GitIntakeLimitError(\"pack\", \"pack exceeds byte limit\");\n \t\t\t\t\tconst piece = chunk.subarray(at, at + count);\n \t\t\t\t\tconst joined = new Uint8Array(tail.length + piece.length);\n \t\t\t\t\tjoined.set(tail);\n@@ -117,3 +117,5 @@\n \t\tthis.storage.sql.exec(\"DELETE FROM git_pack_spool WHERE id = ?\", this.id);\n \t}\n }\n+\n+import { GitIntakeLimitError } from \"./git-intake-limit.ts\";"}],"unmatched":[]}