diff --git a/api/src/main/java/org/openmrs/api/context/ServiceContext.java b/api/src/main/java/org/openmrs/api/context/ServiceContext.java index 7f5b2ef24ab..c2be359e4d6 100644 --- a/api/src/main/java/org/openmrs/api/context/ServiceContext.java +++ b/api/src/main/java/org/openmrs/api/context/ServiceContext.java @@ -904,7 +904,7 @@ public T getRegisteredComponent(String beanName, Class type) throws APIEx return applicationContext.getBean(beanName, type); } catch (BeansException beanException) { - throw new APIException("service.error.during.getting.component", null, beanException); + throw new APIException("Error during getting registered component", beanException); } }