]> WPIA git - cassiopeia.git/blobdiff - src/io/slipBio.cpp
upd: only throwing exceptions now
[cassiopeia.git] / src / io / slipBio.cpp
index a9100b31c88a5e9e44a119ec4f1bf3bb30f2f45f..29bc41e328d663179e7b19c02fde4dafc9bddfec 100644 (file)
@@ -1,7 +1,7 @@
 #include "slipBio.h"
 
 #include <unistd.h>
-
+#include <exception>
 #include <iostream>
 
 #include "log/logger.hpp"
@@ -111,7 +111,7 @@ int SlipBIO::write( const char* buf, int num ) {
 #endif
 
         if( dlen < 0 ) {
-            throw "Error, target write failed";
+            throw std::runtime_error("Error, target write failed");
         } else if( dlen == 0 ) {
             // sleep
             logger::note( "waiting for write ability" );