blob: d95d0056db25e0101ee53815a99ea031c60ca88a (
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
36
|
// 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/types>
#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;
}
*/
}
|