add more log info for error