change nitro_set_error to return -1 rather than error code