Skip to content

Commit

Permalink
fix: error message formatting
Browse files Browse the repository at this point in the history
Co-Authored-By: tkrugg <tkrugg@users.noreply.github.com>
  • Loading branch information
francoischalifour and tkrugg committed Apr 10, 2019
1 parent 227b0d4 commit 3d13411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/insights/client.ts
Expand Up @@ -29,7 +29,7 @@ const getQueryID = (selectedHits: Hits<unknown>) => {
const queryIDs = uniq(selectedHits.map(hit => hit.__queryID));
if (queryIDs.length > 1) {
throw new Error(
`Current API allows a single queryID. The objectIDs provided map to multiple queryIDs.`
'Insights currently allows a single `queryID`. The `objectIDs` provided map to multiple `queryID`s.'
);
}
const queryID = queryIDs[0];
Expand Down

0 comments on commit 3d13411

Please sign in to comment.