diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-01 13:38:30 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-01 13:38:30 +0200 |
commit | 42e1843a5f42455a8a5438551e363ee989483d64 (patch) | |
tree | 7d6cb638bdf97a185c5848e6a89d5e5bdb744fc5 /bpkg/bpkg.cxx | |
parent | eabb1afc66f710880ba43d6bfcfb9c7be6e97026 (diff) |
Add diagnostics facility
Diffstat (limited to 'bpkg/bpkg.cxx')
-rw-r--r-- | bpkg/bpkg.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx index 6e35544..3492705 100644 --- a/bpkg/bpkg.cxx +++ b/bpkg/bpkg.cxx @@ -5,9 +5,31 @@ #include <iostream> #include <exception> +#include <bpkg/diagnostics> + using namespace std; +using namespace bpkg; int main () { + tracer trace ("main"); + + try + { + // Trace verbosity. + // + verb = 0; + } + catch (const failed&) + { + return 1; // Diagnostics has already been issued. + } + /* + catch (const std::exception& e) + { + error << e.what (); + return 1; + } + */ } |