From 813ab942d10c12933af6da4b5fc945009a9a59c5 Mon Sep 17 00:00:00 2001 From: Irwan Cahyono Date: Thu, 7 Aug 2025 13:29:52 +0700 Subject: [PATCH] coba plugin --- plugins/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/api.ts b/plugins/api.ts index 3cfcdac..661a4cb 100644 --- a/plugins/api.ts +++ b/plugins/api.ts @@ -27,7 +27,7 @@ export default defineNuxtPlugin((nuxtApp) => { } } - throw response._data || new Error('Unknown API error'); + throw new Error(response._data?.message || 'Unknown API error'); } })