From f9c32082c83350d634493ca577ac03e5dc7878d0 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 15 Jun 2016 16:00:40 -0700 Subject: [PATCH] [SimpleSort] Don't log file deletion errors --- SimpleSort/SimpleSort.cs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/SimpleSort/SimpleSort.cs b/SimpleSort/SimpleSort.cs index 7efedf26..ddab7a3f 100644 --- a/SimpleSort/SimpleSort.cs +++ b/SimpleSort/SimpleSort.cs @@ -405,7 +405,14 @@ namespace SabreTools } // Now remove this temporary file - File.Delete(newinput); + try + { + File.Delete(newinput); + } + catch + { + // Don't log file deletion errors + } } } @@ -437,7 +444,7 @@ namespace SabreTools } catch (Exception ex) { - _logger.Error(ex.ToString()); + // Don't log file deletion errors } } } @@ -458,7 +465,7 @@ namespace SabreTools } catch (Exception ex) { - _logger.Error(ex.ToString()); + // Don't log file deletion errors } } @@ -477,7 +484,7 @@ namespace SabreTools } catch (Exception ex) { - _logger.Error(ex.ToString()); + // Don't log file deletion errors } }