Fix signIn error swallowing — re-throw so LoginView shows the error

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Julien Calixte
2026-03-28 23:17:47 +01:00
parent eaa151dbe9
commit 3576ccf976
2 changed files with 2 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ export const useAuthStore = defineStore('auth', () => {
} catch (e) {
error.value = e instanceof Error ? e.message : String(e)
loading.value = false
throw e
}
}

View File

@@ -23,7 +23,7 @@
/>
</div>
<p v-if="error" class="text-red-600 text-sm">{{ error }}</p>
<p v-if="error || auth.error" class="text-red-600 text-sm">{{ error || auth.error }}</p>
<button
type="submit"