Now if you confirm an action with the confirmation popup and a confirmation password, if the given password is wrong the popup was already closed when the error is thrown and if the connection is slow it could take some time to show it.
Maybe a good improvement will be to don't close the popup while the action is being processed and if it fails and the problem is a wrong password, the popup could be not closed and the error could be displayed there.
Now if you confirm an action with the confirmation popup and a confirmation password, if the given password is wrong the popup was already closed when the error is thrown and if the connection is slow it could take some time to show it. Maybe a good improvement will be to don't close the popup while the action is being processed and if it fails and the problem is a wrong password, the popup could be not closed and the error could be displayed there.