This project has moved. For the latest updates, please go here.

Show error when password doesn't match


I am using and I am trying to catch an error if the supplied password does not match the encrypted dump file when doing a restore.

This code below always returns null even if the password is incorrect and the restore quits.
 If (mb.LastError IsNot Nothing) Then
            MessageBox.Show("error caught:" + mb.LastError.ToString )
        End If
Also surrounding the Importfromfile command with try / catch blocks like Catch ex As Exception doesn't raise anything either. What am I doing wrong?


lynx550 wrote May 6, 2016 at 4:33 PM

You can close this. I found the solution.

adriancs wrote Jun 13, 2016 at 4:16 AM

Hi, you are right. MySqlBackup.NET should return the error message.
Will look into this and fix.
Thanks for the report.