your lib should maybe use error codes rather then error strings?