Skip to content

unexpected

unexpected(msg: string): [LocalError]

Creates an error describing what outcome happened that was not expected. This error's type will be ErrorType.Unexpected.

This is returned as a single-element ErrorList. For a larger list, use merge to join lists.

Parameters

  • msg: The error message describing what happened that was not expected

Returns

  • Returns a single-element array with one error in it.

See Also