Skip to content

Commit f0910d4

Browse files
authored
TRUNK-6287: Fix Exception Propagation Issue in ServiceContext.getRegisteredComponent Method (#4843)
1 parent 30d6b74 commit f0910d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/org/openmrs/api/context/ServiceContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ public <T> T getRegisteredComponent(String beanName, Class<T> type) throws APIEx
904904
return applicationContext.getBean(beanName, type);
905905
}
906906
catch (BeansException beanException) {
907-
throw new APIException("service.error.during.getting.component", null, beanException);
907+
throw new APIException("Error during getting registered component", beanException);
908908
}
909909
}
910910

0 commit comments

Comments
 (0)