jenkinsci/jenkins — pull request #290 by illicitonion (2011-10-16 20:40:03+00:00)
Title: Use a prettier string representation of jobs

Use a prettier string representation of jobs.

Currently something like:

No such job 'foo' perhaps you meant hudson.model.FreeStyleProject@7fa5f230[foobar]?

is printed if an incorrect job name is passed. Instead, we should call getName on the job object, returning:

No such job 'foo' perhaps you meant foobar?

I don't like the duplication across the two files edited, but don't know the jenkins code enough/have time to get to know it enough to tidy this up - this change doesn't make it any *worse* :)