forked from loafle/openapi-generator-original
Merge pull request #100 from JanxSpirit/master
more descriptive exception message than MatchError
This commit is contained in:
commit
a96d49f045
@ -87,6 +87,7 @@ object SwaggerSerializers {
|
||||
new ResourceListingSerializer +
|
||||
new ApiListingSerializer
|
||||
}
|
||||
case _ => throw new IllegalArgumentException("%s is not a valid Swagger version".format(version))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user