blendle / kubecrt

Convert Helm charts to Kubernetes resources.
ISC License
115 stars 11 forks source link

better error reporting details to stderr #15

Closed JeanMertz closed 6 years ago

JeanMertz commented 6 years ago

Minor improvement when debugging templating errors. The output now prints the final compiled charts.yml, including line numbers, and highlights the problematic area:

screen shot 2018-02-22 at 21 23 33

Note: in the above case, the problem is actually two lines above the red one, but we can only relay what the YAML parser tells us, and even though the problem originates two lines higher, the actual parsing error comes from the red line, nothing we can do there, except use some common sense to see what's really the cause (also, that's where the extra context helps out)