summary refs log tree commit diff stats
path: root/tests/fields
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-07-05 15:51:04 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-07-05 15:51:04 +0200
commit0926754e68861947c67986bc9c7e0a011a58267b (patch)
treebc11469a33f1aabd202e7105177553688439712a /tests/fields
parent9b31f6785947974e89d46bbc0dee11f1c78754dc (diff)
downloadNim-0926754e68861947c67986bc9c7e0a011a58267b.tar.gz
make tests green again
Diffstat (limited to 'tests/fields')
-rw-r--r--tests/fields/tfieldindex.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fields/tfieldindex.nim b/tests/fields/tfieldindex.nim
index d11c1a8b2..6de6d54bd 100644
--- a/tests/fields/tfieldindex.nim
+++ b/tests/fields/tfieldindex.nim
@@ -14,7 +14,7 @@ proc indexOf*(t: typedesc, name: string): int =
   for n, x in fieldPairs(d):
     if n == name: return i
     i.inc
-  raise newException(EInvalidValue, "No field " & name & " in type " &
+  raise newException(ValueError, "No field " & name & " in type " &
     astToStr(t))
 
 echo TMyTuple.indexOf("b")