Log exception where possible
This commit is contained in:
parent
22093c9e8f
commit
cb8cd1ff55
|
@ -146,14 +146,10 @@ namespace IsoMounter
|
||||||
|
|
||||||
public Task<IIsoMount> Mount(string isoPath, CancellationToken cancellationToken)
|
public Task<IIsoMount> Mount(string isoPath, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
LinuxMount mountedISO;
|
if (MountISO(isoPath, out LinuxMount mountedISO)) {
|
||||||
|
|
||||||
if (MountISO(isoPath, out mountedISO))
|
|
||||||
{
|
|
||||||
return Task.FromResult<IIsoMount>(mountedISO);
|
return Task.FromResult<IIsoMount>(mountedISO);
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
{
|
|
||||||
throw new IOException(String.Format(
|
throw new IOException(String.Format(
|
||||||
"An error occurred trying to mount image [$0].",
|
"An error occurred trying to mount image [$0].",
|
||||||
isoPath
|
isoPath
|
||||||
|
|
|
@ -310,7 +310,12 @@ namespace Rssdp.Infrastructure
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await _CommsServer.SendMessage(System.Text.Encoding.UTF8.GetBytes(message), endPoint, receivedOnlocalIpAddress, cancellationToken).ConfigureAwait(false);
|
await _CommsServer.SendMessage(
|
||||||
|
System.Text.Encoding.UTF8.GetBytes(message),
|
||||||
|
endPoint,
|
||||||
|
receivedOnlocalIpAddress,
|
||||||
|
cancellationToken)
|
||||||
|
.ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user