Skip to content

Commit

Permalink
survey state change when imported questions blocked by Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ifoche committed Dec 9, 2015
1 parent fa58d9f commit 100570b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ public PushResult push() {
//data = prepareDataElements(data, controlData.get(""));
data = prepareDataElements(data, null);
pushResult = new PushResult(pushData(data));
if (pushResult.getImported().equals("0")){
throw new Exception("Server was not able to import the data. Please, report to the server admin.");
}
if(pushResult.isSuccessful()){
//TODO: This should be removed once DHIS bug is solved
//pushControlDataElements(controlData);
Expand Down

0 comments on commit 100570b

Please sign in to comment.