Using panic/recover might be better for getting stack traces while in active development, but I can switch that if you prefer a simpler output. I'd recommend spitting that out on stderr though.