Log wasn't defined. And may as well log out the error