Skip to content

Commit

Permalink
Update CarmaCloudInstance to return response code detail for time syn…
Browse files Browse the repository at this point in the history
…c failure.
  • Loading branch information
kruegersp authored Apr 9, 2024
1 parent e39ba1a commit 769e23a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ public void sendTimeSyncMsg(TimeSyncMessage oMsg)
oOut.write(new Gson().toJson(oMsg).getBytes());
}
if (oHttp.getResponseCode() != 200)
throw new IOException();
throw new IOException(String.format("CARMA Cloud failure %d %s", oHttp.getResponseCode(), oHttp.getResponseMessage()));
}
}

0 comments on commit 769e23a

Please sign in to comment.