mirror of https://github.com/VERT-sh/VERT.git
fix build error
This commit is contained in:
parent
47d266f35d
commit
64ab1288f4
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue