Skip to contents

Convenience wrapper around pl_log() for unrecoverable failures.

Usage

pl_fatal(conn, flow, message = NULL, metadata = NULL)

Arguments

conn

A connection object from pl_connect().

flow

Flow name (character).

message

Optional human-readable log message.

metadata

Optional named list, serialized to JSON.

Value

Invisibly returns the created log record, or NULL on failure.

Examples

if (FALSE) { # \dontrun{
pl_fatal(conn, "ectrl_data_load", message = "Unrecoverable database error")
} # }