fixed error handling code...digital ocean changed their api