Grab error code correctly.