ZupIT / ritchie-cli

Ritchie CLI is an open-source tool that allows to create, store and share any kind of automation, executing them through command lines, to run operations or start workflows ⚙️ 🖥 💡
https://docs.ritchiecli.io
Apache License 2.0
559 stars 102 forks source link

nil pointer error with invalid tree.json #649

Closed victorschumacherzup closed 3 years ago

victorschumacherzup commented 4 years ago

I manually edited a tree.json , making it invalid. Now every time i open the terminal, this nil pointer shows up

image

GuillaumeFalourd commented 4 years ago

What would you expect when this happen @victorschumacherzup ? An error message ? Something related to the tree.json file ? I believe it could be interesting to give more details 👍🏼

victorschumacherzup commented 4 years ago

I think it can be silent, because receive a error when i open the terminal is strange

GuillaumeFalourd commented 4 years ago

Ok. And does this error impact Ritchie CLI behavior ?

victorschumacherzup commented 4 years ago

Yes, with a invalid tree, every command result in a nil pointer. In this case a informative error would be fine.

GuillaumeFalourd commented 4 years ago

Hmm, in that case I believe we should suggest in this message a step by step to resolve the problem, don't you think ? Cleaning the tree.json files, updating Ritchie, something like this.

henriquemoraeszup commented 3 years ago

Will be resolved by #768