error -30 buildprogram

Hi I use clBuildprogram to build my code,
and I get an error that I print like this

shrLog(" Error %i build program !!!

", ciErrNum);

But I get error -30, how can I get the real error name,
CL_INVALID_PROGRAM or CL_INVALID_VALUE for exemple.

Thanks

I made up a std::map with the id and the string, and use this whenever I have an error. Easy to make with some copy/paste from the cl.h