Commits

pchiusano committed eccb259

cleaned up error message in Result.get

Comments (0)

Files changed (1)

src/main/scala/nomo/Parser.scala

   */
 case class Result[X,+E,U,+A](status: Status[E,A], position: X, user: U) {
   def get: A = status.right.getOrElse(
-    sys.error("Parse error(s), position %s:\n%s".format(position,status.left.get)))
+    sys.error("Parse error(s):\n" + status.left.get))
   def failure: E = status.left.getOrElse(
     sys.error("Cannot extract failure from successful parse"))
   def isFailure = status.left.isDefined