Skip to content

Commit 41134b1

Browse files
committed
One more error message
1 parent 6ba6edd commit 41134b1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

LiveWriterPluginManager/Services/ZipService.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ public interface IZipService
1818

1919
public class ZipService : IZipService
2020
{
21+
private readonly IMessageService _messageService;
22+
23+
public ZipService(IMessageService messageService)
24+
{
25+
_messageService = messageService;
26+
}
27+
2128
public async Task<Plugin> UnzipFileAsync(string filePath)
2229
{
2330
Plugin result = null;
@@ -55,7 +62,7 @@ await Task.Run(async () =>
5562
}
5663
catch (Exception ex)
5764
{
58-
// TODO: something here
65+
await _messageService.ShowErrorAsync("There was an error unpacking this zip file: " + ex.Message);
5966
}
6067

6168
return result;

0 commit comments

Comments
 (0)