Skip to content

Fixed exception handling#8314

Merged
Siedlerchr merged 1 commit into
JabRef:mainfrom
stoianmihail:stoian-exception
Dec 11, 2021
Merged

Fixed exception handling#8314
Siedlerchr merged 1 commit into
JabRef:mainfrom
stoianmihail:stoian-exception

Conversation

@stoianmihail

@stoianmihail stoianmihail commented Dec 9, 2021

Copy link
Copy Markdown
Contributor

Fixes #8313

undoEdit.addEdit(new UndoableRemoveString(database.getDatabase(), string));
} catch (Exception ex) {
LOGGER.warn("Error: could not add string '" + string.getName() + "': " + ex.getMessage(), ex);
LOGGER.warn("Error: could not remove string '" + string.getName() + "': " + ex.getMessage(), ex);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix, however, you can improve the code even more by using the parameteriezd version: http://slf4j.org/faq.html#paramException

@Siedlerchr Siedlerchr merged commit a74253e into JabRef:main Dec 11, 2021
Siedlerchr added a commit that referenced this pull request Dec 12, 2021
* upstream/main:
  New translations JabRef_en.properties (Turkish) (#8321)
  snap: Remove superfluous files post build (#8319)
  Fix IEEE test (#8320)
  New translations JabRef_en.properties (German) (#8318)
  Fixed exception handling (#8314)
Siedlerchr added a commit that referenced this pull request Dec 12, 2021
* upstream/main:
  New translations JabRef_en.properties (Turkish) (#8321)
  snap: Remove superfluous files post build (#8319)
  Fix IEEE test (#8320)
  New translations JabRef_en.properties (German) (#8318)
  Fixed exception handling (#8314)
  New Crowdin updates (#8312)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[StringRemoveChangeViewModel] Exception

2 participants