Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Commit

Permalink
Better exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
paradigmatic committed Jan 21, 2012
1 parent 2dc4438 commit cf3c000
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -68,7 +68,7 @@ The dependency section is:
<dependency>
<groupId>org.streum</groupId>
<artifactId>configrity_2.9.1</artifactId>
<version>0.8.0</version>
<version>0.9.0</version>
</dependency>


Expand Down
6 changes: 3 additions & 3 deletions modules/yaml/src/YAMLFormat.scala
Expand Up @@ -52,7 +52,7 @@ object YAMLFormat extends Format with HierarchyUtils {
case jmap: JMap[_,_] => readMap( "", jmap.toMap )
case other => {
val klass = other.getClass
except( "Top level should be a map. Received: " + klass )
except( "Top level should be a Map. Received: " + klass )
}
}
}
Expand All @@ -72,8 +72,8 @@ object YAMLFormat extends Format with HierarchyUtils {

private def readList( key: String, lst: JList[_] ):Map[String,String] = {
val value = lst.toList.map {
case jlist: JList[_] => except("Lists cannot contain nested lists")
case jMap: JMap[_,_] => except("Lists cannot contain nested maps")
case jlist: JList[_] => except("Lists cannot contain nested Lists.")
case jMap: JMap[_,_] => except("Lists cannot contain nested Maps.")
case s => "\"" + s.toString + "\""
}.mkString( "[", ",", "]" )
Map( key -> value )
Expand Down
2 changes: 1 addition & 1 deletion project/Build.scala
Expand Up @@ -30,7 +30,7 @@ object ConfigrityBuild extends Build {

lazy val standardSettings = Defaults.defaultSettings ++ Seq(
organization := "org.streum",
version := "0.9.0",
version := "0.10.0_BETA",
scalaVersion := "2.9.1",
crossScalaVersions := Seq("2.9.0-1", "2.9.1"),
libraryDependencies += "org.scalatest" %% "scalatest" % "1.6.1" % "test",
Expand Down

0 comments on commit cf3c000

Please sign in to comment.