Throw error messages when exception occurs while browsing an archive
parent
6cc947b47e
commit
875b7b7caa
|
@ -238,6 +238,8 @@
|
|||
}
|
||||
|
||||
async Task<HashSet<FileManagerDirectory>> GetArchiveDirectoriesAsync(Guid archiveId)
|
||||
{
|
||||
try
|
||||
{
|
||||
var entries = await ArchiveService.GetContents(archiveId);
|
||||
var directories = new HashSet<FileManagerDirectory>();
|
||||
|
@ -258,6 +260,17 @@
|
|||
root
|
||||
};
|
||||
}
|
||||
catch (FileNotFoundException ex)
|
||||
{
|
||||
MessageService.Error("Could not open archive! Is it missing?");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageService.Error("An unknown error occurred trying to open the archive");
|
||||
}
|
||||
|
||||
return new HashSet<FileManagerDirectory>();
|
||||
}
|
||||
|
||||
string GetEntryName(IFileManagerEntry entry)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue