[Refactoring] Made framework lookup errors more verbose (will help to
track down 'Bug 15223 - Can't create framework lookup')