aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-06-14 16:59:32 +0800
committerPetteri Räty <petsku@petteriraty.eu>2011-06-14 15:58:27 +0300
commit26c12581f3d21fb2dadd0f6052f204e26305ed23 (patch)
tree07f352191620eb09b7633bb31f6b822ec1c5ad81 /utils
parentParser: Support redirection for all kinds of commands (diff)
downloadlibbash-26c12581f3d21fb2dadd0f6052f204e26305ed23.tar.gz
libbash-26c12581f3d21fb2dadd0f6052f204e26305ed23.tar.bz2
libbash-26c12581f3d21fb2dadd0f6052f204e26305ed23.zip
Core: add namespace for interpreter_exception
The interpreter_exception is part of our public API so we put it under libbash namespace.
Diffstat (limited to 'utils')
-rw-r--r--utils/ast_printer.cpp2
-rw-r--r--utils/instruo.cpp2
-rw-r--r--utils/variable_printer.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/utils/ast_printer.cpp b/utils/ast_printer.cpp
index e55df78..6fa7c38 100644
--- a/utils/ast_printer.cpp
+++ b/utils/ast_printer.cpp
@@ -181,7 +181,7 @@ int main(int argc, char** argv)
else
print_cin(printer);
}
- catch(interpreter_exception& e)
+ catch(libbash::interpreter_exception& e)
{
if(!vm.count("silent"))
std::cerr << e.what() << std::endl;
diff --git a/utils/instruo.cpp b/utils/instruo.cpp
index 8206b95..dcd3924 100644
--- a/utils/instruo.cpp
+++ b/utils/instruo.cpp
@@ -105,7 +105,7 @@ void worker(const std::shared_ptr<PackageIDSequence> &ids)
{
libbash::interpret(ebuild_path, "utils/isolated-functions.sh", variables, functions);
}
- catch(const interpreter_exception& e)
+ catch(const libbash::interpreter_exception& e)
{
cerr << "Exception occurred while interpreting " << ebuild_path << ". The error message is:\n"
<< e.what() << endl;
diff --git a/utils/variable_printer.cpp b/utils/variable_printer.cpp
index 9104273..a89de8a 100644
--- a/utils/variable_printer.cpp
+++ b/utils/variable_printer.cpp
@@ -59,7 +59,7 @@ int main(int argc, char** argv)
{
libbash::interpret(argv[1], get_src_dir() + "/utils/isolated-functions.sh", variables, functions);
}
- catch(interpreter_exception& e)
+ catch(libbash::interpreter_exception& e)
{
std::cerr << e.what() << std::endl;
return EXIT_FAILURE;