Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

minErr: Make optional link on errors.angularjs.org #10590

Closed
maksimr opened this issue Dec 28, 2014 · 4 comments
Closed

minErr: Make optional link on errors.angularjs.org #10590

maksimr opened this issue Dec 28, 2014 · 4 comments

Comments

@maksimr
Copy link
Contributor

maksimr commented Dec 28, 2014

It's useful when you write tests and output tests' result to terminal.
On small displays query parameters for errors.angularjs.org occupy a large part of display and you have to switch to screen where run tests and scroll to the beginning of the error message.

@Narretz
Copy link
Contributor

Narretz commented Jan 20, 2015

That doesn't seem unreasonable, although I am not sure how you would tell minErr to not append the whole stack.

@phdesign
Copy link

phdesign commented Oct 5, 2015

Running into this problem myself. As a workaround I'm piping test output through grep

grunt test | grep -v http://errors.angularjs.org

@jakub-g
Copy link

jakub-g commented Nov 23, 2015

@phdesign I followed your advice, but just realized this is not a very good solution for most usages.

I put this into my package.json to have npm test:

"scripts": {
  "test": "karma start --single-run | grep -v errors.angularjs.org"
}

Normally, when you run the test (karma start --single-run) and it fails, karma exits with non-zero exit code.

However when you pipe to grep, the exit code will be 0 even it failed! So suddenly all the tools, like build hooks that relied on npm test to return zero only for good tests (and non zero when there are issues, to immediately stop the build) are broken

@Narretz
Copy link
Contributor

Narretz commented Feb 16, 2017

Duplicate of #14744 and the the url length will be configurable in the future: #15707

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants