Show error on console only if debug mode is activated

As a developer I want to capture the error on callback and display the way I like.