Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Added nicer exception for configuration errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wdroste committed Mar 25, 2012
1 parent 4dda6ca commit 74a7043
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ class Neo4jSpringConfigurer extends SpringConfigurer {
Closure getSpringCustomizer() {
return {
def neo4jConfig = application.config?.grails?.neo4j // use config from app's Datasource.groovy
if (!neo4jConfig) {
throw new IllegalArgumentException("Unable to find 'grails.neo4j' in application config.")
}
Class neo4jGraphDatabaseClass

if (neo4jConfig.type == "rest") {
Expand Down

0 comments on commit 74a7043

Please sign in to comment.