fix build error

This commit is contained in:
JovannMC 2025-02-08 23:12:02 +03:00
parent 47d266f35d
commit 64ab1288f4
No known key found for this signature in database
3 changed files with 3 additions and 4 deletions

BIN
bun.lockb Normal file

Binary file not shown.

View File

@ -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;
}

View File

@ -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;
}