add more information when encounter error