Don't use LibGetVariable(), since it doesn't give us real error codes.