When using SvelteKit and there are issues on endpoints and form action handlers (+page.server.ts and +server.ts), when should throw error and when should return fail be used? For fail:
return fail( status , {details} )
and when should an error be thrown instead?
throw error( status , message )
If the form action handler and endpoint are called from a use:enhancement form does that change which is more suitable to use? Will both be sent to the use:enhancement form handler or does error bypass it and go directly to +error.svelte? In the docs I do not see how the fail is handled specifically in comparison to the thrown error?