59501 r=naving sr=bienvenu. Thanks to spayne@dccnet.com for providing the patch.

Propagate return values.
This commit is contained in:
naving%netscape.com 2001-02-22 23:45:50 +00:00
Родитель eb19652f7b
Коммит d87794a4be
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -200,7 +200,8 @@ nsNNTPNewsgroupList::GetDatabase(const char *uri, nsIMsgDatabase **db)
printf ("newsDBFactory->Open() failed\n");
}
#endif /* DEBUG_NEWS */
return rv;
// return the error
return newsDBOpen;
}
#ifdef DEBUG_NEWS
else {
@ -284,6 +285,9 @@ nsNNTPNewsgroupList::GetRangeOfArtsToDownload(nsIMsgWindow * aMsgWindow,
if (!m_newsDB) {
nsresult err;
if ((err = GetDatabase(GetURI(), &m_newsDB)) != NS_OK) {
// set the status to -1 to tell state machine to stop
// processing
if (status) *status=-1;
return err;
}
else {