Svelte · Senior · Question 29 of 75

What does handleError do, and why shouldn't it expose details?

Explanation

Expected errors created with error() carry user-facing messages; unexpected ones should show a generic message.

Further reading

Problem with a question

Svelte · Senior · question 29

Test yourself

Take the Svelte · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz