Fix for 192147. Fixed error msgs display problem. r=shliang, sr=sspitzer.

This commit is contained in:
cavin%netscape.com 2003-02-28 23:30:20 +00:00
Родитель 89316e747e
Коммит 0cd6fbdd62
2 изменённых файлов: 7 добавлений и 4 удалений

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

@ -448,10 +448,13 @@ function ShowResults(doesWantProgress, result)
function ShowImportResults(good, module)
{
// The callers seem to set 'good' to true even if there's something
// in the error log. So we should only make it a success case if
// error log/str is empty.
var modSuccess = 'Import' + module + 'Success';
var modFailed = 'Import' + module + 'Failed';
var results, title;
if (good) {
if (good && !errorStr.data) {
title = gImportMsgsBundle.getFormattedString(modSuccess, [ selectedModuleName ? selectedModuleName : '' ]);
results = successStr.data;
}

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

@ -794,7 +794,7 @@ ImportMailThread( void *stuff)
rv = curProxy->GetChildNamed( lastName.get(), getter_AddRefs( subFolder));
if (NS_FAILED( rv)) {
IMPORT_LOG1("*** ImportMailThread: Failed to get the interface for child folder '%s'.", NS_ConvertUCS2toUTF8(lastName).get());
nsImportGenericMail::ReportError( IMPORT_ERROR_MB_FINDCHILD, lastName.get(), &success);
nsImportGenericMail::ReportError( IMPORT_ERROR_MB_FINDCHILD, lastName.get(), &error);
pData->fatalError = PR_TRUE;
break;
}
@ -818,7 +818,7 @@ ImportMailThread( void *stuff)
rv = curProxy->GetParent( getter_AddRefs( parFolder));
if (NS_FAILED( rv)) {
IMPORT_LOG1("*** ImportMailThread: Failed to get the interface for parent folder '%s'.", lastName.get());
nsImportGenericMail::ReportError( IMPORT_ERROR_MB_FINDCHILD, lastName.get(), &success);
nsImportGenericMail::ReportError( IMPORT_ERROR_MB_FINDCHILD, lastName.get(), &error);
pData->fatalError = PR_TRUE;
break;
}
@ -875,7 +875,7 @@ ImportMailThread( void *stuff)
IMPORT_LOG1("*** ImportMailThread: Failed to create subfolder '%s'.", lastName.get());
if (NS_FAILED( rv)) {
nsImportGenericMail::ReportError( IMPORT_ERROR_MB_CREATE, lastName.get(), &success);
nsImportGenericMail::ReportError( IMPORT_ERROR_MB_CREATE, lastName.get(), &error);
}
if (size && import && newFolder && outBox && NS_SUCCEEDED( rv)) {