From 076fbdda4477b87deb322e43925e010d24d9fa5d Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 17 Feb 2015 08:28:14 +0100 Subject: o More tests, more passing tests. --- main.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 0ff7eed..757db28 100644 --- a/main.cpp +++ b/main.cpp @@ -32,7 +32,7 @@ int main(int argc, char *argv[]) { BluetoothAdapter *adapter = nullptr; int e; - try { +// try { targetMac = Mac::parseMac(argv[1]); adapter = trygvis::getAdapter(0); @@ -44,13 +44,13 @@ int main(int argc, char *argv[]) { // adapter->runScan(scan_callback); e = EXIT_SUCCESS; - } catch (std::runtime_error ex) { - W << "std::runtime_error: " << ex.what(); - e = EXIT_FAILURE; - } catch (std::exception ex) { - W << "std::exception: " << ex.what(); - e = EXIT_FAILURE; - } +// } catch (std::runtime_error ex) { +// W << "std::runtime_error: " << ex.what(); +// e = EXIT_FAILURE; +// } catch (std::exception ex) { +// W << "std::exception: " << ex.what(); +// e = EXIT_FAILURE; +// } if (adapter != nullptr) { delete adapter; -- cgit v1.2.3