Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

an illegal root section name crashes the software #1

Open
lelutin opened this issue Apr 1, 2017 · 0 comments
Open

an illegal root section name crashes the software #1

lelutin opened this issue Apr 1, 2017 · 0 comments

Comments

@lelutin
Copy link

lelutin commented Apr 1, 2017

Hello, when trying out this software I made the simple mistake of spelling the root section name wrong. Instead of saying that the section name does not exist, the software just crashed like so:

vagrant@jessie:~/Project-Illuminati$ bundle exec ruby nwo.rb -f p2.yml -n koumbitswitches
/home/vagrant/Project-Illuminati/lib/illuminati/p2.rb:5:in `initialize': undefined method `[]' for nil:NilClass (NoMethodError)
	from nwo.rb:15:in `new'
	from nwo.rb:15:in `<main>'

it'd be nice to check that the root section name exists before calling initialize and if it doesn't exist tell something like this to the user: "error: root section name %s does not exist"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant