FF-1066 - added try/catch around discord/gotify/apprise/email

This commit is contained in:
John Andrews
2023-08-14 10:30:24 +12:00
parent c0af5561f2
commit 2662043207
8 changed files with 259 additions and 166 deletions

View File

@@ -12,7 +12,7 @@ public class IfString: IfBase
/// <summary>
/// Gets or sets the URL to the help page
/// </summary>
public override string HelpUrl => "https://fileflows.com/docs/plugins/basic-nodes/conditions/if-boolean";
public override string HelpUrl => "https://fileflows.com/docs/plugins/basic-nodes/conditions/if-string";
/// <summary>
/// Gets the number of outputs

View File

@@ -0,0 +1,40 @@
using FileFlows.Plugin;
namespace FileFlows.BasicNodes.Templating;
/// <summary>
/// Special templating node for the output path
/// </summary>
public class OutputPath : TemplatingNode
{
/// <summary>
/// Gets the number of inputs
/// </summary>
public override int Inputs => 1;
/// <summary>
/// Gets the icon
/// </summary>
public override string Icon => "fas fa-folder";
/// <summary>
/// Gets or sets the URL to the help page
/// </summary>
public override string HelpUrl => "https://fileflows.com/docs/plugins/basic-nodes/templating/output-path";
/// <summary>
/// Gets or sets the flow element type
/// </summary>
public override FlowElementType Type => FlowElementType.Logic;
/// <summary>
/// Executes the flow element
/// </summary>
/// <param name="args">the node paramters</param>
/// <returns>the output</returns>
public override int Execute(NodeParameters args)
{
args.Logger?.ELog("This templating node cannot be used in an executed flow");
return -1;
}
}

View File

@@ -0,0 +1,11 @@
using FileFlows.Plugin;
namespace FileFlows.BasicNodes.Templating;
/// <summary>
/// Flow element used for templating
/// </summary>
public abstract class TemplatingNode : Node
{
}