Skip to content

Commit

Permalink
cleanup and bump sqlx
Browse files Browse the repository at this point in the history
  • Loading branch information
halvardssm committed Apr 21, 2024
1 parent f404aa6 commit de26b97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"imports": {
"@denosaurs/plug": "jsr:@denosaurs/plug@^1.0.5",
"@halvardm/sqlx": "jsr:@halvardm/sqlx@0.0.0-10",
"@halvardm/sqlx": "jsr:@halvardm/sqlx@0.0.0-11",
"@std/assert": "jsr:@std/assert@^0.221.0",
"@std/log": "jsr:@std/log@^0.223.0",
"@std/path": "jsr:@std/path@^0.217.0"
Expand Down
4 changes: 2 additions & 2 deletions src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SqlxError } from "@halvardm/sqlx";
import { isSqlxError, SqlxError } from "@halvardm/sqlx";

export class SqliteError extends SqlxError {
constructor(msg: string) {
Expand All @@ -16,5 +16,5 @@ export class SqliteTransactionError extends SqliteError {
* Check if an error is a SqliteError
*/
export function isSqliteError(err: unknown): err is SqliteError {
return err instanceof SqliteError;
return isSqlxError(err) && err instanceof SqliteError;
}

0 comments on commit de26b97

Please sign in to comment.