]> git.lyx.org Git - features.git/commitdiff
* Inset::buffer(): change to an ErrorException as this can be bad enough to provoke...
authorAbdelrazak Younes <younes@lyx.org>
Thu, 28 Feb 2008 12:29:33 +0000 (12:29 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 28 Feb 2008 12:29:33 +0000 (12:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23310 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/Inset.cpp

index 75982717049600910803ec9ccaebd60f90b297c1..2488017b1dbf0e284d071ff67675c93b2ab1da76 100644 (file)
@@ -129,8 +129,8 @@ Buffer & Inset::buffer()
 {
        if (!buffer_) {
                odocstringstream s;
-               s << "LyX Code: " << lyxCode();
-               throw ExceptionMessage(WarningException, 
+               s << "LyX Code: " << lyxCode() << " name: " << name();
+               throw ExceptionMessage(ErrorException, 
                        from_ascii("Inset::buffer_ member not initialized!"), s.str());
        }
        return *buffer_;