log-error
The log-error
Instruction outputs a message in the error log. Use with the conditional Instructions to output errors if conditions are met.
action |
"log-error" |
message |
The message to output in the error log. |
See also abort-record
, which can be used to prevent a Record from being imported when there is an error.
Example
{ "action": "if-exists", "source": "researchers", "then": [ // ... process researchers ... ], "else": [ { "action": "log-error", "message": "Expected researchers, but wasn't present" } ] }