summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/db/src/core/cli/commands/execute/index.ts2
-rw-r--r--packages/db/src/runtime/utils.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/db/src/core/cli/commands/execute/index.ts b/packages/db/src/core/cli/commands/execute/index.ts
index 66ecdd774..053736291 100644
--- a/packages/db/src/core/cli/commands/execute/index.ts
+++ b/packages/db/src/core/cli/commands/execute/index.ts
@@ -2,6 +2,7 @@ import { existsSync } from 'node:fs';
import type { AstroConfig } from 'astro';
import { green } from 'kleur/colors';
import type { Arguments } from 'yargs-parser';
+import { isDbError } from '../../../../runtime/utils.js';
import {
EXEC_DEFAULT_EXPORT_ERROR,
EXEC_ERROR,
@@ -15,7 +16,6 @@ import {
import { bundleFile, importBundledFile } from '../../../load-file.js';
import type { DBConfig } from '../../../types.js';
import { getManagedRemoteToken } from '../../../utils.js';
-import { isDbError } from '../../../../runtime/utils.js';
export async function cmd({
astroConfig,
diff --git a/packages/db/src/runtime/utils.ts b/packages/db/src/runtime/utils.ts
index 74201957f..9a979b062 100644
--- a/packages/db/src/runtime/utils.ts
+++ b/packages/db/src/runtime/utils.ts
@@ -43,7 +43,7 @@ export class DetailedLibsqlError extends LibsqlError {
}
export function isDbError(err: unknown): err is LibsqlError {
- return err instanceof LibsqlError || (err instanceof Error && (err as any).libsqlError === true)
+ return err instanceof LibsqlError || (err instanceof Error && (err as any).libsqlError === true);
}
function slash(path: string) {