this exception expects something that responds to `#name` and `#locked_version` (a `CookbookSource` for example) but it's being given a string. Small refactor here will get this fixed up.

There's no test so I found it by doing manual testing. Might be cool to get a test too!