Replaced error message with code