Fix error reporting.
Merge pull request #1 from nouiz/shackenberg-adding_GpuJoin.c_code

Fix error reporting