copier icon indicating copy to clipboard operation
copier copied to clipboard

feat: add `failure_message` option for tasks (#2080)

Open dusktreader opened this issue 7 months ago • 2 comments

  • Do not show stack trace on task failure
  • If a failure_message option is provided, show that message: "Task N failed: a nice failure message"
  • If no failure_message option is provided, show the subprocess exception: "Task N failed: Command 'might-fail' returned non-zero exit status 1."

Addresses Issue #2080: https://github.com/copier-org/copier/issues/2080

dusktreader avatar Apr 14 '25 05:04 dusktreader

I rebased this branch on tsvikas/feat/task-error branch and updated it to work with that change.

dusktreader avatar Apr 19 '25 02:04 dusktreader

@sisp I have rebased on master. Let me know if any other adjustments are needed.

dusktreader avatar Apr 29 '25 16:04 dusktreader