auth-ui: add e2e tests
Change-Id: Ic8f2f9e032d24eed2d4fd824dcfc26c59d7d915e
diff --git a/core/installer/cmd/dodo_app.go b/core/installer/cmd/dodo_app.go
index 9b5da30..7f1957d 100644
--- a/core/installer/cmd/dodo_app.go
+++ b/core/installer/cmd/dodo_app.go
@@ -4,6 +4,7 @@
"bytes"
"database/sql"
"encoding/json"
+ "errors"
"fmt"
"io"
"log"
@@ -276,7 +277,7 @@
if resp.StatusCode != http.StatusOK {
var buf bytes.Buffer
io.Copy(&buf, resp.Body)
- return fmt.Errorf(buf.String())
+ return errors.New(buf.String())
}
return nil
}
@@ -303,7 +304,7 @@
if resp.StatusCode != http.StatusOK {
var buf bytes.Buffer
io.Copy(&buf, resp.Body)
- return fmt.Errorf(buf.String())
+ return errors.New(buf.String())
}
return nil
}