Added error message in log