Skip to content

an illegal root section name crashes the software #1

@lelutin

Description

@lelutin

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions