UNPKG
@glue42/search-api
Version:
latest (1.3.2)
1.3.2
1.3.1
1.3.0
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.0
Glue42 Search API
glue42.com
@glue42/search-api
/
src
/
shared
/
utils.ts
9 lines
(8 loc)
•
299 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
/* eslint-disable @typescript-eslint/no-explicit-any */
export
const
extractErrorMsg = (
error
: any):
string
=> {
const
stringError = typeof
error
===
"string"
?
error
:
error
.message ? JSON.stringify(
error
.message) : JSON.stringify(
error
);
return
stringError; };