datasource as cfg: typo

This commit is contained in:
bergquist
2017-10-25 11:29:19 +02:00
parent da6430ac01
commit d68bfaa8be
3 changed files with 5 additions and 6 deletions

View File

@@ -139,7 +139,7 @@ func UpdateDataSource(c *middleware.Context, cmd m.UpdateDataSourceCommand) Resp
err = bus.Dispatch(&cmd)
if err != nil {
if err == m.ErrDataSouceUpdatingOldVersion {
if err == m.ErrDataSourceUpdatingOldVersion {
return ApiError(500, "Failed to update datasource. Reload new version and try again", err)
} else {
return ApiError(500, "Failed to update datasource", err)