Skip to content

Commit

Permalink
fix: app types for the build
Browse files Browse the repository at this point in the history
  • Loading branch information
av committed Sep 29, 2024
1 parent b83d2b1 commit 56b2293
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/config/HarborConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { remove, writeTextFile } from "@tauri-apps/plugin-fs";
import { dirname, join } from "@tauri-apps/api/path";
import { join } from "@tauri-apps/api/path";

import {
CURRENT_PROFILE,
Expand Down
6 changes: 5 additions & 1 deletion app/src/useHarbor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ export const useHarborTrigger = (args: string[]) => {
const result = await runHarbor(args);
setResult(result);
} catch (e) {
setError(e);
if (e instanceof Error) {
setError(e);
} else {
setError(new Error(`Unexpected error: ${e}`));
}
} finally {
setLoading(false);
}
Expand Down

0 comments on commit 56b2293

Please sign in to comment.