lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [45/50] lucenenet git commit: Lucene.Net.Core.Store.FSDirectory: passed original exception through for debugging purposes
Date Thu, 30 Mar 2017 18:00:40 GMT
Lucene.Net.Core.Store.FSDirectory: passed original exception through for debugging purposes


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/362133a2
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/362133a2
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/362133a2

Branch: refs/heads/api-work
Commit: 362133a2a73a424697ea96efe998fa42ec02ac1b
Parents: a966d9a
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Mar 30 19:59:07 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Mar 30 19:59:07 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Store/FSDirectory.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/362133a2/src/Lucene.Net.Core/Store/FSDirectory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Store/FSDirectory.cs b/src/Lucene.Net.Core/Store/FSDirectory.cs
index b66e535..41334b3 100644
--- a/src/Lucene.Net.Core/Store/FSDirectory.cs
+++ b/src/Lucene.Net.Core/Store/FSDirectory.cs
@@ -305,9 +305,9 @@ namespace Lucene.Net.Store
                     throw new IOException("Cannot delete " + file);
                 }
             }
-            catch (Exception)
+            catch (Exception e)
             {
-                throw new IOException("Cannot delete " + file);
+                throw new IOException("Cannot delete " + file, e);
             }
             m_staleFiles.Remove(name);
         }


Mime
View raw message