change error process by errorlib