mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-06 00:15:32 +00:00
migrated some exceptions to use templates
fixed missed hard coded value in template fixed listing of channels in channel groups fixed template loading
This commit is contained in:
@@ -32,7 +32,8 @@ public class DatabaseTemplateLoader implements TemplateLoader {
|
||||
*/
|
||||
@Override
|
||||
public Object findTemplateSource(String s) throws IOException {
|
||||
return templateManagementService.getTemplateByKey(s);
|
||||
Optional<Template> templateByKey = templateManagementService.getTemplateByKey(s);
|
||||
return templateByKey.orElseThrow(() -> new IOException(String.format("Failed to load template. %s", s)));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user