summary refs log tree commit diff stats
path: root/tests/concepts/tmapconcept.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/concepts/tmapconcept.nim')
-rw-r--r--tests/concepts/tmapconcept.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/concepts/tmapconcept.nim b/tests/concepts/tmapconcept.nim
index 6b959eff2..cc99737df 100644
--- a/tests/concepts/tmapconcept.nim
+++ b/tests/concepts/tmapconcept.nim
@@ -78,7 +78,7 @@ proc getFirstValue[K,V](m : Map[K,V]): V =
   for i in m.valuesSeq:
     return i
 
-  raise newException(RangeError, "no values")
+  raise newException(RangeDefect, "no values")
 
 proc useConceptProcInGeneric[K, V](t: Table[K, V]): V =
   return t.getFirstValue