Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

Commit

Permalink
Corrected error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepSamudrala committed Jan 18, 2017
1 parent c949059 commit 8f2a8d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ protected static void checkIfExtensionExists(String extensionName) {
ExtensionBean extensionBean = metaStore.getDetail(extensionName);
if (extensionBean == null) {
LOG.error("Extension not found: " + extensionName);
throw FalconWebException.newAPIException("Extension Job not found:" + extensionName,
throw FalconWebException.newAPIException("Extension not found:" + extensionName,
Response.Status.NOT_FOUND);
}
}
Expand All @@ -252,7 +252,7 @@ protected static void checkIfExtensionJobNameExists(String jobName, String exten
ExtensionJobsBean extensionJobsBean = metaStore.getExtensionJobDetails(jobName);
if (extensionJobsBean != null && !extensionJobsBean.getExtensionName().equals(extensionName)) {
LOG.error("Extension job with name: " + extensionName + " already exists.");
throw FalconWebException.newAPIException("Extension job with name: " + extensionName + " already exists.",
throw FalconWebException.newAPIException("Extension job with name: " + jobName + " already exists.",
Response.Status.INTERNAL_SERVER_ERROR);
}
}
Expand Down

0 comments on commit 8f2a8d4

Please sign in to comment.