From b2ed35e8aa2b5d63f42abf7d9e9115d79e3c6105 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Fri, 5 Feb 2016 09:59:02 -0800 Subject: [PATCH] Print a better error on missing config classes Without this you don't actually see what config class you tried to use, which makes it hard to grep around Makefiles to see why things are broken. --- src/main/scala/Testing.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/Testing.scala b/src/main/scala/Testing.scala index a194915e..2540d83b 100644 --- a/src/main/scala/Testing.scala +++ b/src/main/scala/Testing.scala @@ -136,8 +136,8 @@ object TestGenerator extends App with FileSystemUtilities { Class.forName(s"$projectName.$configClassName").newInstance.asInstanceOf[Config] } catch { case e: java.lang.ClassNotFoundException => - throwException(s"Could not find the cde.Config subclass you asked for " + - "(i.e. \"$configClassName\"), did you misspell it?", e) + throwException("Unable to find configClassName \"" + configClassName + + "\", did you misspell it?", e) } val world = config.toInstance val paramsFromConfig: Parameters = Parameters.root(world)