tool/CommandSoeRead.cpp
changeset 1877 7b77000f9764
parent 1872 23d4e121faaf
child 1953 968a531e5a89
--- a/tool/CommandSoeRead.cpp	Fri Mar 19 11:07:49 2010 +0100
+++ b/tool/CommandSoeRead.cpp	Fri Mar 19 12:01:32 2010 +0100
@@ -28,7 +28,6 @@
  ****************************************************************************/
 
 #include <iostream>
-#include <iomanip>
 using namespace std;
 
 #include "CommandSoeRead.h"
@@ -127,8 +126,7 @@
         m.readSoe(&ioctl);
     } catch (MasterDeviceSoeException &e) {
         delete [] ioctl.data;
-        err << "SoE read command aborted with code 0x"
-            << setfill('0') << hex << setw(4) << e.errorCode;
+        err << "SoE read command failed with code " << errorMsg(e.errorCode);
         throwCommandException(err);
     } catch (MasterDeviceException &e) {
         delete [] ioctl.data;