You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Referenced input files exceed the ${MAX_STAGED_TOTAL_BYTES} byte staging budget.`
215
+
thrownewDocCompileUserError(
216
+
`Referenced input files exceed the ${Math.round(MAX_STAGED_TOTAL_BYTES/(1024*1024))} MB total staging budget (the whole document's references count). Use smaller/compressed copies of the largest images.`
@@ -263,8 +250,10 @@ async function stageReferencedImages(
263
250
// outside the catch above so it fails the compile rather than being skipped.
264
251
totalBytes+=buffer.length
265
252
if(totalBytes>MAX_STAGED_TOTAL_BYTES){
266
-
thrownewError(
267
-
`Referenced input files exceed the ${MAX_STAGED_TOTAL_BYTES} byte staging budget.`
253
+
// A user-fixable condition, not a transient failure: retrying with the
254
+
// same references can never succeed — the images must shrink.
255
+
thrownewDocCompileUserError(
256
+
`Referenced input files exceed the ${Math.round(MAX_STAGED_TOTAL_BYTES/(1024*1024))} MB total staging budget (the whole document's references count). Use smaller/compressed copies of the largest images.`
268
257
)
269
258
}
270
259
files.push({
@@ -608,7 +597,7 @@ export async function loadCompiledDocByExt(
0 commit comments