coba plugin

This commit is contained in:
Irwan Cahyono 2025-08-07 13:29:52 +07:00
parent ac71dcb1b3
commit 813ab942d1

View File

@ -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');
}
})