Skip to content

Commit

Permalink
Fixes #9134 application.groovy not loaded on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Sep 9, 2015
1 parent c79097f commit 632fbbd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import grails.util.Environment
import grails.util.Metadata
import groovy.transform.CompileStatic
import groovy.util.logging.Commons
import org.grails.core.exceptions.GrailsConfigurationException
import org.springframework.boot.env.PropertySourceLoader
import org.springframework.core.env.MapPropertySource
import org.springframework.core.env.PropertySource
Expand Down Expand Up @@ -59,6 +60,7 @@ class GroovyConfigPropertySourceLoader implements PropertySourceLoader {
return new MapPropertySource(name, finalMap)
} catch (Throwable e) {
log.error("Unable to load $resource.filename: $e.message", e)
throw new GrailsConfigurationException("Error loading $resource.filename due to [${e.getClass().name}]: $e.message", e)
}
}
}
Expand Down

0 comments on commit 632fbbd

Please sign in to comment.