nit error handling

This commit is contained in:
Ruben Fiszel
2023-01-15 07:22:35 +01:00
parent cd47170b06
commit 1b82cd7667
@@ -143,7 +143,7 @@
</div>
{:else if !forceJson && resultKind == 'error'}<div>
<span class="text-red-500 font-semibold">{result.error.name}: {result.error.message}</span>
<pre class="text-sm whitespace-pre-wrap text-gray-900">{result.error.stack}</pre>
<pre class="text-sm whitespace-pre-wrap text-gray-900">{result.error.stack ?? ''}</pre>
</div>
{:else if !forceJson && resultKind == 'approval'}<div class="flex flex-col gap-1 mx-4">
<Button