aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/lib/usrp/n230/n230_frontend_ctrl.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/host/lib/usrp/n230/n230_frontend_ctrl.cpp b/host/lib/usrp/n230/n230_frontend_ctrl.cpp
index 9de106fde..e0820d9b2 100644
--- a/host/lib/usrp/n230/n230_frontend_ctrl.cpp
+++ b/host/lib/usrp/n230/n230_frontend_ctrl.cpp
@@ -1,5 +1,5 @@
//
-// Copyright 2013-2014 Ettus Research LLC
+// Copyright 2013-2014,2016 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -20,6 +20,7 @@
#include <uhd/utils/msg.hpp>
#include <uhd/exception.hpp>
#include <uhd/types/dict.hpp>
+#include <boost/format.hpp>
#include <boost/thread.hpp>
#include "n230_fpga_defs.h"
@@ -119,7 +120,9 @@ public:
} else if (which == 1) {
set_stream_state(_fe_states[0].state, state);
} else {
- throw uhd::value_error("n230: unknown stream index option: " + which);
+ throw uhd::value_error(
+ str(boost::format("n230: unknown stream index option: %d") % which)
+ );
}
}