diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libexpr/print.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libexpr/print.cc b/src/libexpr/print.cc index c04278a0e..8b45475d8 100644 --- a/src/libexpr/print.cc +++ b/src/libexpr/print.cc @@ -253,7 +253,7 @@ private: output << "ยป"; if (options.ansiColors) output << ANSI_NORMAL; - } catch (BaseError & e) { + } catch (Error & e) { printError_(e); } } @@ -403,7 +403,7 @@ private: output << ANSI_NORMAL; } - void printError_(BaseError & e) + void printError_(Error & e) { if (options.ansiColors) output << ANSI_RED; @@ -420,7 +420,7 @@ private: if (options.force) { try { state.forceValue(v, v.determinePos(noPos)); - } catch (BaseError & e) { + } catch (Error & e) { printError_(e); return; } |