mapAndLogError

Functionin experimental@fastly/js-compute 4.0.0since 3.37.0View source
mapAndLogError(error: Error | string): void

Calls mapError and outputs the results to stderr.

Parameters

error: Error | string

The error to map and log. If a string is provided, it is first converted to an Error.

Returns

void