mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-21 18:02:35 +01:00
don't use toast for fatal error
This commit is contained in:
parent
b32d1958e5
commit
c0ee8d7ee8
@ -177,7 +177,7 @@ export function handleError(arg1: unknown, arg2?: unknown) {
|
||||
if (err != null && 'code' in err && err.code === 'LLC_FFPROBE_UNSUPPORTED_FILE') {
|
||||
errorToast(i18n.t('Unsupported file'));
|
||||
} else {
|
||||
toast.fire({
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: str || i18n.t('An error has occurred.'),
|
||||
text: err?.message ? err?.message.slice(0, 300) : undefined,
|
||||
|
Loading…
Reference in New Issue
Block a user