search: improve log message when metas length mismatch

Log also the name of the provider and the expected/received metas.
This commit is contained in:
Cosimo Cecchi 2015-01-07 18:15:30 +08:00 committed by Jasper St. Pierre
parent cea946e745
commit 67a807e849

View File

@ -204,7 +204,8 @@ const SearchResultsBase = new Lang.Class({
return;
}
if (metas.length != metasNeeded.length) {
log('Wrong number of result metas returned by search provider');
log('Wrong number of result metas returned by search provider ' + this.provider.id +
': expected ' + metasNeeded.length + ' but got ' + metas.length);
callback(false);
return;
}