"include/composable_kernel/utility/Array.hpp" did not exist on "17f3d2d4bccebcc3a70606a916f93dc90e5eaa3a"
Commit 415777ec authored by Brandon Hulston's avatar Brandon Hulston
Browse files

Add error catching for import

parent 27d5eb46
...@@ -133,7 +133,11 @@ ...@@ -133,7 +133,11 @@
let chats = JSON.parse(event.target.result); let chats = JSON.parse(event.target.result);
console.log(chats); console.log(chats);
if (getImportOrigin(chats) == 'gpt') { if (getImportOrigin(chats) == 'gpt') {
try {
chats = convertGptChats(chats); chats = convertGptChats(chats);
} catch (error) {
console.log("Unable to import chats:", error);
}
} }
importChats(chats); importChats(chats);
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment