diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-11 15:09:21 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-11 15:09:21 +0100 |
commit | 4048ee8150cad5253fd6f0245c9a357484eac3f2 (patch) | |
tree | 2434df63c0766d6c2f8f8294af9104697f4abae2 /src/cmdline.cpp | |
parent | 7206f6d1249da0dd8e879d0c0b26185fc6ef89d9 (diff) | |
download | sciteco-4048ee8150cad5253fd6f0245c9a357484eac3f2.tar.gz |
refactored SciTECO runtime errors: moved from parser.cpp to error.cpp
* the GError expection has been renamed to GlibError, to avoid
nameclashes when working from the SciTECO namespace
Diffstat (limited to 'src/cmdline.cpp')
-rw-r--r-- | src/cmdline.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmdline.cpp b/src/cmdline.cpp index e19b3c4..52427b8 100644 --- a/src/cmdline.cpp +++ b/src/cmdline.cpp @@ -37,6 +37,7 @@ #include "undo.h" #include "symbols.h" #include "spawn.h" +#include "error.h" #include "cmdline.h" namespace SciTECO { @@ -100,8 +101,8 @@ cmdline_keypress(gchar key) cmdline_pos = repl_pos = r.pos; macro_pc = r.pos-1; continue; - } catch (State::Error &error) { - error.add_frame(new State::Error::ToplevelFrame()); + } catch (Error &error) { + error.add_frame(new Error::ToplevelFrame()); error.display_short(); if (old_cmdline) { |