Better error handling in db:dump command