Add
{#await json then data}
{:catch error}
{error}
{/await}