Follow up to bug 606966, catch NS_ERROR_FAILURE instead of NS_ERROR_MALFORMED_URI. rs=sdwilsh a=test-only bustage fix for mailnews add-ons DONTBUILD

This commit is contained in:
Mark Banner 2011-01-27 13:33:00 -10:00
Родитель fdb11b0950
Коммит 358585e399
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -408,7 +408,7 @@ function test_non_addable_uri_errors()
};
places.push(place);
}
catch (e if e.result === Cr.NS_ERROR_MALFORMED_URI) {
catch (e if e.result === Cr.NS_ERROR_FAILURE) {
// NetUtil.newURI() can throw if e.g. our app knows about imap://
// but the account is not set up and so the URL is invalid for us.
// Note this in the log but ignore as it's not the subject of this test.