Thrown WebApplicationException instead of ConfigurationException
This commit is contained in:
parent
a210d1e237
commit
ae16df71c3
|
@ -1292,8 +1292,8 @@ public class ProfiledMongoManager extends MongoManager implements MongoManagerI<
|
|||
log.info("ignore_errors is {}, returning input doc {}", ignore_errors, doc.getId());
|
||||
return doc;
|
||||
}
|
||||
log.info("Thrown "+ConfigurationException.class.getSimpleName()+" with message {}", filesetExc.getMessage());
|
||||
throw new ConfigurationException(filesetExc.getMessage());
|
||||
log.info("Thrown "+WebApplicationException.class.getSimpleName()+" with message {}", filesetExc.getMessage());
|
||||
throw new WebApplicationException(error, Response.Status.BAD_REQUEST);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue