feat: very silly error handling
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import Button from 'primevue/button';
|
||||
import { invoke } from '@tauri-apps/api/core';
|
||||
import { invoke } from '../invoke';
|
||||
import { Package } from '../types';
|
||||
import { needsUpdate, pkgKey } from '../util';
|
||||
|
||||
@ -16,7 +16,6 @@ const install = async () => {
|
||||
try {
|
||||
await invoke('install_package', { key: pkgKey(props.pkg) });
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
if (props.pkg !== undefined) {
|
||||
props.pkg.js.busy = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user