Added in error logging to the grunt view