Skip to main content

core.normalizeerrorstring

Home > @medplum/core > normalizeErrorString

normalizeErrorString() function

Normalizes an error object into a displayable error string.

Signature:

export declare function normalizeErrorString(error: unknown): string;

Parameters

ParameterTypeDescription
errorunknownThe error value which could be a string, Error, OperationOutcome, or other unknown type.

Returns:

string

A display string for the error.