Skip to content

Commit

Permalink
throw error if failure (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv authored Oct 31, 2024
1 parent 5c14d2e commit 82af27d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/resources/js/components/MeetingEditForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@
const geocodeResult = await geocoder.geocode();
if (typeof geocodeResult === 'string') {
geocodingError = geocodeResult;
return;
spinner.hide();
throw new Error(geocodeResult);
}
if (geocodeResult) {
values.latitude = geocodeResult.lat;
Expand Down Expand Up @@ -944,7 +945,7 @@
<div class="grid gap-4 md:grid-cols-2">
<div class="md:col-span-2">
{#if geocodingError}
<Helper class="mt-2" color="red">
<Helper class="mb-4 mt-2 pb-2 text-lg" color="red">
{geocodingError}
</Helper>
{/if}
Expand Down

0 comments on commit 82af27d

Please sign in to comment.