We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c9df64 commit e5aea64Copy full SHA for e5aea64
lib/api/search.ts
@@ -102,7 +102,8 @@ export async function list<T, H = T>(
102
} catch (e) {
103
let m = `Error filtering ${indexId}`;
104
if (e instanceof Error) m = `${e.name} filtering ${indexId}: ${e.message}`;
105
- if (typeof e === 'string') m = `Error filtering ${indexId}: ${e}`;
+ if (typeof e?.message === 'string') m += `: ${e.message}`;
106
+ if (typeof e === 'string') m += `: ${e}`;
107
throw new APIError(m, 500);
108
}
109
0 commit comments