mirror of
https://github.com/n8n-io/n8n.git
synced 2026-12-05 01:00:52 +00:00
9 lines
296 B
TypeScript
9 lines
296 B
TypeScript
import { UserError } from 'n8n-workflow';
|
|
|
|
export class DecompressedSizeExceededError extends UserError {
|
|
constructor(maxOutputSize: number) {
|
|
const limitMb = Math.round(maxOutputSize / (1024 * 1024));
|
|
super(`The decompressed output exceeds the maximum allowed size of ${limitMb} MB`);
|
|
}
|
|
}
|