aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-02-27 14:20:24 -0800
committerMartin Braun <martin.braun@ettus.com>2017-02-27 17:04:50 -0800
commit888e224e40ec3ed7a55cd845ec4c06fcac11bbe2 (patch)
tree55c9ff24d72f26419c22c81480efad7a866415b5 /host/examples
parentf85352491975d1b98680512617a074db09f6da5e (diff)
downloaduhd-888e224e40ec3ed7a55cd845ec4c06fcac11bbe2.tar.gz
uhd-888e224e40ec3ed7a55cd845ec4c06fcac11bbe2.tar.bz2
uhd-888e224e40ec3ed7a55cd845ec4c06fcac11bbe2.zip
examples: Replaced throw with exit() in sync_to_gps
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/sync_to_gps.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/examples/sync_to_gps.cpp b/host/examples/sync_to_gps.cpp
index f27c3eff5..3a9b5c7e4 100644
--- a/host/examples/sync_to_gps.cpp
+++ b/host/examples/sync_to_gps.cpp
@@ -99,7 +99,8 @@ int UHD_SAFE_MAIN(int argc, char *argv[])
std::cout << "LOCKED" << std::endl;
} else {
std::cout << "FAILED" << std::endl;
- throw uhd::runtime_error("Failed to lock to GPSDO 10 MHz Reference");
+ std::cout << "Failed to lock to GPSDO 10 MHz Reference. Exiting." << std::endl;
+ exit(EXIT_FAILURE);
}
}
else