emberjs/ember.js — pull request #1376 by dmzza (2012-09-15 10:32:01+00:00)
Title: New assertion to check for a valid viewClass on connectOutlet when name isn't defined.

This error really bugged me when I clearly wasn't providing both name and viewClass at the same time, but the viewClass I was providing just wasn't found. Now this assertion will run first if name is undefined, to check that viewClass is defined and resolving to a view.

I'm not sure if this is a necessary addition or the best way to write it, but it sure would have saved me a lot of pain if the current assertion was more specific.

I've tested every case I can think of and the error output looks correct and more helpful to me now.

Also changes the original error to say "viewClass" instead of "view class".