remove use of reflection to detect app err.
Этот коммит содержится в:
@@ -188,9 +188,8 @@ func selfHostedConfirm(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
c.Err = model.NewAppError(where, "api.cloud.app_error", nil, "", http.StatusInternalServerError).Wrap(err)
|
c.Err = model.NewAppError(where, "api.cloud.app_error", nil, "", http.StatusInternalServerError).Wrap(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
license, err := c.App.Srv().Platform().SaveLicense([]byte(confirmResponse.License))
|
license, appErr := c.App.Srv().Platform().SaveLicense([]byte(confirmResponse.License))
|
||||||
// dealing with an AppError
|
if appErr != nil {
|
||||||
if !(reflect.ValueOf(err).Kind() == reflect.Ptr && reflect.ValueOf(err).IsNil()) {
|
|
||||||
if confirmResponse != nil {
|
if confirmResponse != nil {
|
||||||
c.App.NotifySelfHostedSignupProgress(confirmResponse.Progress, user.Id)
|
c.App.NotifySelfHostedSignupProgress(confirmResponse.Progress, user.Id)
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user