Improve error message when local project is unavailable

This commit is contained in:
Rūdolfs Ošiņš
2024-02-16 16:38:18 +00:00
parent e67db70e0c
commit f833fc506e
4 changed files with 27 additions and 12 deletions
+2 -6
View File
@@ -1,9 +1,6 @@
<script lang="ts">
import type {
ResponseError,
ResponseParseError,
} from "@httpd-client/lib/fetcher";
import type { ComponentProps } from "svelte";
import type { ErrorParam } from "@app/lib/router/definitions";
import { config } from "@app/lib/config";
import Command from "./Command.svelte";
@@ -12,8 +9,7 @@
export let title: string;
export let description: string;
export let error: Error | ResponseParseError | ResponseError | undefined =
undefined;
export let error: ErrorParam = undefined;
export let icon: ComponentProps<Icon>["name"] = "alert";
</script>