Improve error messages when using options.contains