Skip to content

Commit 669e1a0

Browse files
committed
More fine-grained error reporting
1 parent 529b36a commit 669e1a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: src/core/auth/qgsauthmanager.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,12 @@ bool QgsAuthManager::resetMasterPasswordUsingStoredPasswordHelper( const QString
816816

817817
bool readOk = false;
818818
const QString existingPassword = passwordHelperRead( readOk );
819+
if ( !readOk )
820+
{
821+
emit passwordHelperMessageLog( tr( "Master password could not be read from the %1" ).arg( passwordHelperDisplayName() ), authManTag(), Qgis::MessageLevel::Warning );
822+
return false;
823+
}
824+
819825
return resetMasterPassword( newPassword, existingPassword, keepBackup, backupPath );
820826
}
821827

0 commit comments

Comments
 (0)