Skip to content

Commit

Permalink
[14399] do not show save error for brief with file content
Browse files Browse the repository at this point in the history
  • Loading branch information
huthomas committed Aug 27, 2018
1 parent 5a7265f commit 4bc6ef2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions bundles/ch.elexis.core.data/src/ch/elexis/data/Brief.java
Expand Up @@ -21,10 +21,7 @@
import com.google.common.io.Files;

import ch.elexis.core.constants.StringConstants;
import ch.elexis.core.data.events.ElexisEventDispatcher;
import ch.elexis.core.data.interfaces.IOutputter;
import ch.elexis.core.data.interfaces.events.MessageEvent;
import ch.elexis.core.data.interfaces.events.MessageEvent.MessageType;
import ch.elexis.core.data.util.BriefExternUtil;
import ch.elexis.core.model.BriefConstants;
import ch.elexis.core.text.XRefExtensionConstants;
Expand Down Expand Up @@ -423,9 +420,6 @@ public void save(String contents){
Files.write(contents, file, Charset.defaultCharset());
} catch (IOException e) {
LoggerFactory.getLogger(getClass()).error("Could not access file", e);
// try to show to user
ElexisEventDispatcher.getInstance().fireMessageEvent(new MessageEvent(
MessageType.ERROR, "Error writing file", e.getLocalizedMessage()));
}
}

Expand All @@ -435,9 +429,6 @@ public void save(byte[] contents){
Files.write(contents, file);
} catch (IOException e) {
LoggerFactory.getLogger(getClass()).error("Could not access file", e);
// try to show to user
ElexisEventDispatcher.getInstance().fireMessageEvent(new MessageEvent(
MessageType.ERROR, "Error writing file", e.getLocalizedMessage()));
}
}

Expand Down

0 comments on commit 4bc6ef2

Please sign in to comment.