summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-10-07 20:42:45 +0000
committersr55 <[email protected]>2012-10-07 20:42:45 +0000
commitb8ee41991cb6e93d2cf9222fc13b0fd4277fdf70 (patch)
treeee616d4f4c6333a40f188306a21f26646aaa781d /win/CS/HandBrake.ApplicationServices/Services/ScanService.cs
parent5b54f61fc2020e2bb32db47ee4cf10110b966bd3 (diff)
WinGui: Fix a couple of swallowed exceptions.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5009 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services/ScanService.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/ScanService.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs b/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs
index acfb4d6d6..bb4ec44c6 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs
@@ -319,8 +319,8 @@ namespace HandBrake.ApplicationServices.Services
}
else
{
- throw new Exception(
- "The Log file has not been written to disk as it has grown above the 50MB limit. This indicates there was a problem during the scan process.");
+ throw new GeneralApplicationException(
+ "The Log file has not been written to disk as it has grown above the 50MB limit", " This indicates there was a problem during the scan process.", null);
}
}
@@ -330,7 +330,7 @@ namespace HandBrake.ApplicationServices.Services
if (postScanAction != null)
{
postScanAction(true);
- }
+ }
else
{
if (this.ScanCompleted != null)
@@ -339,6 +339,10 @@ namespace HandBrake.ApplicationServices.Services
}
}
}
+ catch (GeneralApplicationException)
+ {
+ throw;
+ }
catch (Exception exc)
{
this.Stop();
@@ -356,7 +360,7 @@ namespace HandBrake.ApplicationServices.Services
}
}
}
-
+
/// <summary>
/// Fire an event when the scan process progresses
/// </summary>