Display correct error message on dialog using error.toString()