diff options
| author | Bond_009 <bond.009@outlook.com> | 2018-12-16 00:48:40 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2018-12-16 00:49:18 +0100 |
| commit | cb8cd1ff55d86317032365df0b6730815d8a8243 (patch) | |
| tree | 732ab0809b7d0a0027a2eac1d7f132d77006268e /Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs | |
| parent | 22093c9e8fe15691cca79795acc2616a8b7ec4ff (diff) | |
Log exception where possible
Diffstat (limited to 'Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs')
| -rw-r--r-- | Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs b/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs index 4716c64b2..620d3bae9 100644 --- a/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs +++ b/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs @@ -146,14 +146,10 @@ namespace IsoMounter public Task<IIsoMount> Mount(string isoPath, CancellationToken cancellationToken) { - LinuxMount mountedISO; - - if (MountISO(isoPath, out mountedISO)) - { + if (MountISO(isoPath, out LinuxMount mountedISO)) { return Task.FromResult<IIsoMount>(mountedISO); } - else - { + else { throw new IOException(String.Format( "An error occurred trying to mount image [$0].", isoPath |
