lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [1/3] lucenenet git commit: check for appropriate exception
Date Tue, 05 May 2015 17:44:16 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master 784eba7e8 -> 792dbad3e


check for appropriate exception


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

Branch: refs/heads/master
Commit: 1454e2bdccf05ff01095912989974e32d9728427
Parents: 784eba7
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Mon May 4 16:03:39 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Mon May 4 16:03:39 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Tests/core/Index/TestDirectoryReader.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1454e2bd/src/Lucene.Net.Tests/core/Index/TestDirectoryReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestDirectoryReader.cs b/src/Lucene.Net.Tests/core/Index/TestDirectoryReader.cs
index 7eda017..a3d0c49 100644
--- a/src/Lucene.Net.Tests/core/Index/TestDirectoryReader.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestDirectoryReader.cs
@@ -743,7 +743,7 @@ namespace Lucene.Net.Index
                 DirectoryReader.Open(dir);
                 Assert.Fail("did not hit expected exception");
             }
-            catch (IndexNotFoundException nsde)
+            catch (NoSuchDirectoryException nsde)
             {
                 // expected
             }


Mime
View raw message