title: Catch console errors while running e2e tests with jasmine and protractor
body: <p>While running e2e tests (protractor, selenium) I want to catch any console errors and warnings generated by application. </p>
  
  <p>I know protractor plugin <code>protractor-console-plugin</code> which catches console and make tests fail but it prints all logs from all tests at the end and I don't know during which test case the log was created.</p>
  
  <p>Also I know <code>protractor-console</code> which does good job in presenting console logs after the test case but it can't mark test as failed in case of console.error.</p>
  
  <p>My package.json (important part here) is:</p>
  
  <pre><code>"jasmine-core": "^2.8.0",
  "jasmine-spec-reporter": "^4.2.1",
  "karma": "^1.7.1",
  "karma-chrome-launcher": "^2.2.0",
  "karma-cli": "~1.0.1",
  "karma-coverage-istanbul-reporter": "^1.3.0",
  "karma-jasmine": "~1.1.0",
  "karma-jasmine-html-reporter": "^0.2.2",
  "protractor": "^5.1.2",
  "protractor-console": "^3.0.0",
  "protractor-console-plugin": "^0.1.1",
  "protractor-jasmine2-screenshot-reporter": "^0.4.1",
  </code></pre>