diff --git a/plugins/import/BibTeX/ImportBibTeX.cpp b/plugins/import/BibTeX/ImportBibTeX.cpp index 28f746715b..ba64d561a3 100644 --- a/plugins/import/BibTeX/ImportBibTeX.cpp +++ b/plugins/import/BibTeX/ImportBibTeX.cpp @@ -1,6 +1,6 @@ /** * - * Copyright (C) 2019-2023 The Talipot developers + * Copyright (C) 2019-2024 The Talipot developers * * Talipot is a fork of Tulip, created by David Auber * and the Tulip development Team from LaBRI, University of Bordeaux @@ -344,6 +344,8 @@ class ImportBibTeX : public ImportModule { sstr << "BibTeX file parsing error at char " << e.column() << " of line " << e.line() << ": " << e.what() << endl; pluginProgress->setError(sstr.str()); + } catch (exception &e) { + pluginProgress->setError("BibTeX file could not be parsed: " + string(e.what())); } result = !graph->isEmpty();