mage icon indicating copy to clipboard operation
mage copied to clipboard

Improve panic reporting

Open flowchartsman opened this issue 3 years ago • 1 comments

From a UX perspective, "Error: runtime error: invalid memory address or nil pointer dereference" is not particularly helpful if I've made a mistake in my magefile that causes a panic, since there's zero context to localize it. Though I appreciate the desire to keep error message parsimonious in a build tool, it would be super helpful if I could get a full stacktrace when running with -debug or at least the relevant location of the panic without -debug

flowchartsman avatar Feb 03 '21 16:02 flowchartsman

yeah 100%. I think this is just not a flow I have spent a lot of time on. Just dumping the regular panic message shouldn't be too hard.

natefinch avatar Feb 08 '21 18:02 natefinch