Skip to content

armgit / VERT

Public Imported from GitHub
0

The next-generation file converter. Open source, fully local* and free forever.

fix build error

JovannMC64ab1288f4d0
diff --git a/bun.lockb b/bun.lockb
new file mode 100644
index 0000000..e067663
Binary files /dev/null and b/bun.lockb differ
diff --git a/src/lib/types/file.svelte.ts b/src/lib/types/file.svelte.ts
index 0c56458..7142777 100644
--- a/src/lib/types/file.svelte.ts
+++ b/src/lib/types/file.svelte.ts
@@ -1,5 +1,4 @@
import type { Converter } from "$lib/converters/converter.svelte";
-import { error } from "$lib/logger";
import { addToast } from "$lib/store/ToastProvider";
export class VertFile {
@@ -47,7 +46,7 @@ export class VertFile {
res = await this.converter.convert(this, this.to);
this.result = res;
} catch (err) {
- error(["files"], "Error converting file", err);
+ console.error(err);
addToast("error", `Error converting file: ${this.file.name}`);
this.result = null;
}
diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte
index f093fc9..10ea613 100644
--- a/src/routes/about/+page.svelte
+++ b/src/routes/about/+page.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { error } from "$lib/logger";
+ import { error, log } from "$lib/logger";
import * as About from "$lib/sections/about";
import { InfoIcon } from "lucide-svelte";
import { onMount } from "svelte";
@@ -52,7 +52,7 @@
const cachedContribs = sessionStorage.getItem("ghContribs");
if (cachedContribs) {
ghContribs = JSON.parse(cachedContribs);
- console.log("Loaded GitHub contributors from cache");
+ log(["about"], "Loaded GitHub contributors from cache");
return;
}