JS API Reference
Module: shared/utils/apiErrorMessage
Table of contents
Functions
Functions
getMessageFromApiError
▸ getMessageFromApiError(error
): string
Try to extract a message from a yagna API error. If the error is not an instance of ApiError
, return the error message.
Parameters
Name | Type |
---|---|
error | unknown |
Returns
string
Defined in
Was this helpful?