mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-12 15:52:56 +10:00
Merge pull request #1790 from gzsombor/import-fixes
Better error handling and more lenient on the imported values
This commit is contained in:
@ -182,11 +182,11 @@ export const ImportDialog = () => {
|
||||
}
|
||||
|
||||
close();
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
toast({
|
||||
variant: "error",
|
||||
title: t`Oops, the server returned an error.`,
|
||||
description: importError?.message,
|
||||
description: error["message"],
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user