grid-pro.extracterrormessage
Home > @genesislcap/grid-pro > extractErrorMessage
extractErrorMessage() function
Extracts a user-friendly error message from a given error detail.
Signature:
extractErrorMessage: (detail: any) => string
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
detail |
any |
The error detail, which can be a string, array, or object. |
Returns:
string
A user-friendly error message.