Commit 74c8c672 authored by Sebastien Petitdemange's avatar Sebastien Petitdemange
Browse files

debug display the errno message in case of error

parent f46ec8c9
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h>
#include "lima/Debug.h" #include "lima/Debug.h"
#include "PilatusInterface.h" #include "PilatusInterface.h"
...@@ -643,7 +644,7 @@ public: ...@@ -643,7 +644,7 @@ public:
else else
{ {
m_interface.m_cam.errorStopAcquisition(); m_interface.m_cam.errorStopAcquisition();
THROW_HW_ERROR(Error) << "Can't open file:" << DEB_VAR1(full_path); THROW_HW_ERROR(Error) << strerror(errno) << DEB_VAR1(full_path);
} }
} }
void* mmap_mem_base = mmap(NULL,DECTRIS_EDF_OFFSET + memSize, void* mmap_mem_base = mmap(NULL,DECTRIS_EDF_OFFSET + memSize,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment