]> git.lyx.org Git - lyx.git/blobdiff - src/factory.cpp
Embedding: saving inzip name to .lyx file so that embedded files can always be found...
[lyx.git] / src / factory.cpp
index d5c1ddd1f676f8a29447418410054d6919f2b8a3..d3b29e2f22e83b14c083c2ad8114e0101a49f5e6 100644 (file)
@@ -361,9 +361,9 @@ Inset * createInset(Buffer & buf, FuncRequest const & cmd)
 
        } catch (ExceptionMessage const & message) {
                if (message.type_ == ErrorException) {
+                       // This should never happen!
                        Alert::error(message.title_, message.details_);
-                       LyX::cref().emergencyCleanup();
-                       abort();
+                       LyX::cref().exit(1);
                } else if (message.type_ == WarningException) {
                        Alert::warning(message.title_, message.details_);
                        return 0;