Commit 717d8d0c by Marcus Efraimsson

folders: fix api error mapping

parent b56e2a61
......@@ -138,7 +138,7 @@ func toFolderError(err error) Response {
return Json(412, util.DynMap{"status": "version-mismatch", "message": m.ErrFolderVersionMismatch.Error()})
}
if err == m.ErrDashboardNotFound {
if err == m.ErrFolderNotFound {
return Json(404, util.DynMap{"status": "not-found", "message": m.ErrFolderNotFound.Error()})
}
......@@ -146,5 +146,5 @@ func toFolderError(err error) Response {
err = m.ErrFolderFailedGenerateUniqueUid
}
return ApiError(500, "Failed to create folder", err)
return ApiError(500, "Folder API error", err)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment