I like it more to log the error because in some environments this gives us an interactive object (chrome developer console and others)