Skip to content

Commit

Permalink
Merge pull request #9 from upstash/dx-657-fix-vector-js-error-message…
Browse files Browse the repository at this point in the history
…-content

DX 657: Improve UpstashError Content
  • Loading branch information
ogzhanolguncu committed Feb 7, 2024
2 parents 2dda0fa + 221ed64 commit 2bb5703
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/client/upsert/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Command } from "@commands/command";

type NoInfer<T> = T extends infer U ? U : never
type NoInfer<T> = T extends infer U ? U : never;

type UpsertCommandPayload<TMetadata> = {
id: number | string;
Expand Down
2 changes: 1 addition & 1 deletion src/http/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class HttpClient implements Requester {

const body = (await res.json()) as UpstashResponse<TResult>;
if (!res.ok) {
throw new UpstashError(`${body.error}, command was: ${JSON.stringify(req.body)}`);
throw new UpstashError(`${body.error}`);
}

return { result: body.result, error: body.error };
Expand Down

0 comments on commit 2bb5703

Please sign in to comment.