From 42e1843a5f42455a8a5438551e363ee989483d64 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 1 Sep 2015 13:38:30 +0200 Subject: Add diagnostics facility --- bpkg/bpkg.cxx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'bpkg/bpkg.cxx') 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 #include +#include + 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; + } + */ } -- cgit v1.1