Add consola errors, update to better-auth v1.2.6

This commit is contained in:
Aman Varshney
2025-04-13 14:36:14 +05:30
parent 3dd2147a98
commit 1e67949e4f
16 changed files with 184 additions and 123 deletions

View File

@@ -9,6 +9,7 @@ import {
spinner,
text,
} from "@clack/prompts";
import consola from "consola";
import { $ } from "execa";
import fs from "fs-extra";
import pc from "picocolors";
@@ -301,7 +302,7 @@ export async function setupTurso(
}
} catch (error) {
setupSpinner.stop(pc.red("Failed to set up Turso database"));
log.error(
consola.error(
pc.red(
`Error during Turso setup: ${error instanceof Error ? error.message : String(error)}`,
),