more descriptive exception message than MatchError

This commit is contained in:
Gregg Carrier
2013-10-16 22:11:15 -04:00
parent 2c5524476e
commit ee19dfadf1

View File

@@ -87,6 +87,7 @@ object SwaggerSerializers {
new ResourceListingSerializer +
new ApiListingSerializer
}
case _ => throw new IllegalArgumentException("%s is not a valid Swagger version".format(version))
}
}