mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-22 02:12:30 +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') {
|
if (err != null && 'code' in err && err.code === 'LLC_FFPROBE_UNSUPPORTED_FILE') {
|
||||||
errorToast(i18n.t('Unsupported file'));
|
errorToast(i18n.t('Unsupported file'));
|
||||||
} else {
|
} else {
|
||||||
toast.fire({
|
Swal.fire({
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
title: str || i18n.t('An error has occurred.'),
|
title: str || i18n.t('An error has occurred.'),
|
||||||
text: err?.message ? err?.message.slice(0, 300) : undefined,
|
text: err?.message ? err?.message.slice(0, 300) : undefined,
|
||||||
|
Loading…
Reference in New Issue
Block a user