blob: 3492705049d9cbdb27e83629189bf10ef3fcc73f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// file : bpkg/bpkg.cxx -*- C++ -*-
// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
#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;
}
*/
}
|