Protractor gives you access to the console log while it is testing. This functionality could be used to verify that no errors are occurring, or other similar things you might want to test.
There's in fact a built-in plugin called "console" that does exactly that.