Fixing doto usage in creating ErrorInfo