Add error handling to the local mysqldump command

Errors from mysqldump were not handled, so the output could be diffed
against an empty dump with no notification to the user.

The return value of the command is checked, and if it is not 0 the
output from the command is thrown as an exception.