diff --git a/FlowPluginsTs/CommunityFlowPlugins/file/compareFileSizeRatioLive/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/file/compareFileSizeRatioLive/1.0.0/index.ts index c603920..4051238 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/file/compareFileSizeRatioLive/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/file/compareFileSizeRatioLive/1.0.0/index.ts @@ -15,6 +15,9 @@ const details = (): IpluginDetails => ({ that output a file. Can be placed anywhere before a plugin which outputs a new file. + + You can check if this plugin caused an error by using 'Check Flow Variable' and checking if + {{{args.variables.liveSizeCompare.error}}} is true. ', `, style: { @@ -155,6 +158,7 @@ const plugin = (args: IpluginInputArgs):IpluginOutputArgs => { compareMethod, thresholdPerc, checkDelaySeconds, + error: false, }; return { diff --git a/FlowPluginsTs/FlowHelpers/1.0.0/cliUtils.ts b/FlowPluginsTs/FlowHelpers/1.0.0/cliUtils.ts index f51b4cd..59f9e24 100644 --- a/FlowPluginsTs/FlowHelpers/1.0.0/cliUtils.ts +++ b/FlowPluginsTs/FlowHelpers/1.0.0/cliUtils.ts @@ -188,6 +188,8 @@ class CLI { this.config.jobLog(`Ratio is greater than threshold: ${thresholdPerc}%, cancelling job`); this.cancelled = true; + // @ts-expect-error must exist to be here + this.config.args.variables.liveSizeCompare.error = true; this.killThread(); }; diff --git a/FlowPluginsTs/FlowHelpers/1.0.0/interfaces/interfaces.ts b/FlowPluginsTs/FlowHelpers/1.0.0/interfaces/interfaces.ts index 0d1c6c8..d39b3a0 100644 --- a/FlowPluginsTs/FlowHelpers/1.0.0/interfaces/interfaces.ts +++ b/FlowPluginsTs/FlowHelpers/1.0.0/interfaces/interfaces.ts @@ -101,6 +101,7 @@ export interface IliveSizeCompare { compareMethod: string, thresholdPerc: number, checkDelaySeconds: number, + error: boolean, } export interface Ivariables {