log origin of offending call

This commit is contained in:
Johannes Mockenhaupt 2018-07-01 19:15:27 +02:00
parent 21313bd418
commit bf3b4502bf
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -495,6 +495,7 @@ public class TreatmentsPlugin extends PluginBase implements TreatmentsInterface
NSUpload.uploadTreatmentRecord(detailedBolusInfo);
if (!allowUpdate && !newRecordCreated) {
log.error("Treatment could not be added to DB", new Exception());
Intent i = new Intent(MainApp.instance(), ErrorHelperActivity.class);
i.putExtra("soundid", R.raw.error);
i.putExtra("title", MainApp.gs(R.string.error_adding_treatment_title));