diff --git a/src/db/dbChannelIO.cpp b/src/db/dbChannelIO.cpp index 413041e01..2d522cb52 100644 --- a/src/db/dbChannelIO.cpp +++ b/src/db/dbChannelIO.cpp @@ -79,9 +79,11 @@ void dbChannelIO::write ( unsigned type, unsigned long count, const void *pValue if ( count > LONG_MAX ) { throw outOfBounds(); } - status = db_put_field ( &this->addr, type, pValue, static_cast (count) ); + status = db_put_field ( &this->addr, type, pValue, + static_cast (count) ); if ( status ) { - throw -1; + throw std::logic_error ( + "db_put_field() completed unsuccessfully" ); } }