fix error reporting, where choices is list of flat values
Merge pull request #245 from zmolodchenko/patch-1

fix error reporting, where choices is list of flat values