Skip to content

Commit

Permalink
Small wording changes
Browse files Browse the repository at this point in the history
  • Loading branch information
honzasp committed Jun 7, 2023
1 parent d4be8a2 commit 3020aa7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/http/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ async function errorFromResponse(resp: Response): Promise<Error> {
}

if (resp.status === 404) {
message += ". Maybe the server is outdated and does not support HTTP API v2?";
message += ". It seems that the libsql server is outdated, please try updating the database.";
}

return new HttpServerError(message, resp.status);
Expand Down
2 changes: 1 addition & 1 deletion src/value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function valueToProto(value: InValue): proto.Value {
return {"type": "text", "value": value};
} else if (typeof value === "number") {
if (!Number.isFinite(value)) {
throw new ClientError("Only finite numbers (not Infinity or NaN) can be passed as arguments");
throw new RangeError("Only finite numbers (not Infinity or NaN) can be passed as arguments");
}
return {"type": "float", "value": +value};
} else if (typeof value === "bigint") {
Expand Down
3 changes: 2 additions & 1 deletion typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"visibilityFilters": {
"inherited": true,
"external": true
}
},
"includeVersion": true
}

0 comments on commit 3020aa7

Please sign in to comment.