app-manager: include error message in the logs during schema install error
diff --git a/appmanager/installer.go b/appmanager/installer.go
index 1fc5ae8..006fc31 100644
--- a/appmanager/installer.go
+++ b/appmanager/installer.go
@@ -2,6 +2,7 @@
 
 import (
 	"fmt"
+	"io/ioutil"
 	"net/http"
 	"strings"
 )
@@ -15,7 +16,8 @@
 		return err
 	}
 	if resp.StatusCode != http.StatusOK {
-		return fmt.Errorf("Failed request with status code: %d", resp.StatusCode)
+		body, _ := ioutil.ReadAll(resp.Body)
+		return fmt.Errorf("Failed request with status code: %d %s", resp.StatusCode, string(body))
 	}
 	return nil
 }