From 632fbbd2f77e9f33906677704fcdd7e30e88aa48 Mon Sep 17 00:00:00 2001 From: graemerocher Date: Wed, 9 Sep 2015 11:00:17 +0200 Subject: [PATCH] Fixes #9134 application.groovy not loaded on startup --- .../org/grails/core/cfg/GroovyConfigPropertySourceLoader.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grails-core/src/main/groovy/org/grails/core/cfg/GroovyConfigPropertySourceLoader.groovy b/grails-core/src/main/groovy/org/grails/core/cfg/GroovyConfigPropertySourceLoader.groovy index 5e4c8ce35a2..5d70753b324 100644 --- a/grails-core/src/main/groovy/org/grails/core/cfg/GroovyConfigPropertySourceLoader.groovy +++ b/grails-core/src/main/groovy/org/grails/core/cfg/GroovyConfigPropertySourceLoader.groovy @@ -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 @@ -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) } } }