Update error code handling when creating walls