configuration-as-code-plugin icon indicating copy to clipboard operation
configuration-as-code-plugin copied to clipboard

Don't show a stack trace on boot error, do a user friendly error instead

Open timja opened this issue 3 years ago • 0 comments

Jenkins and plugins versions report

What Operating System are you using (both controller, and any agents involved in the problem)?

Reproduction steps

  • Put invalid config in a jenkins.yaml and restart it
  • Jenkins fails to load with a big stacktrace

https://gitter.im/jenkinsci/configuration-as-code-plugin?at=61fa665aced11857f98d53c6

Expected Results

  • A clear error message is displayed, possibly with the option to expand it to see the full error

Jenkins has moved away from showing stacktraces to users, and hides them by default now on error pages, we should follow to match that

Actual Results

  • A giant stacktrace that scares users and makes it hard for them to see what is wrong

Anything else?

No response

timja avatar Feb 02 '22 14:02 timja