-
Notifications
You must be signed in to change notification settings - Fork 9
errors
This section contains information about specific error messages shown by hyperpotamus.
This error occurs when you have an interpolation macro that uses a non-existent session key.
For example, the following script will cause a MissingKeyError to be raised:
- set:
foo: bar
- print: <% baz %>resulting in
MissingKeyError: No matching key was found in the session
Key: baz
Tag: <% baz %>
This error is usually caused by a scripting mistake, but in cases where a value may intentionally not exist in your a script, you can use the optional pipe after the field name to replace the macro with a blank or default value.
- print: Optional - <% foo | optional %>
- print: Optional w/default - <% foo | optional,bat %>results in
Optional -
Optional w/default - bat
This error occurs when you have an interpolation macro that uses pipe functions, but the pipe-function name is either misspelled in the script, or the corresponding custom pipe-function plugin has not been loaded.
- set:
foo: bar
- print: <% foo | non_existant_pipe_function %>results in:
PipeNotFoundError: Pipe function: 'non_existant_pipe_function' could not be found
Check the pipes reference to see if the pipe is listed.
Hyperpotamus Documentation - home