Add descriptive message for archive import failure
This commit is contained in:
@@ -158,8 +158,12 @@ export async function importArchiveDatabase(
|
||||
);
|
||||
}
|
||||
} catch (e) {
|
||||
if (e.message.includes("unexpected end of file")) {
|
||||
showAndLogErrorMessage("Database is corrupt or too large. Try unzipping outside of VS Code and importing the unzipped folder instead.");
|
||||
} else {
|
||||
showAndLogErrorMessage(e.message);
|
||||
}
|
||||
}
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user