Isolating error code