Polishing

This commit is contained in:
Deluan
2016-03-23 12:35:10 -04:00
parent b3215f057f
commit c87b133071
17 changed files with 74 additions and 69 deletions
+2 -2
View File
@@ -24,10 +24,10 @@ func (c *StreamController) Prepare() {
switch {
case err == domain.ErrNotFound:
beego.Error("MediaFile", c.id, "not found!")
c.SendError(responses.ERROR_DATA_NOT_FOUND)
c.SendError(responses.ErrorDataNotFound)
case err != nil:
beego.Error("Error reading mediafile", c.id, "from the database", ":", err)
c.SendError(responses.ERROR_GENERIC, "Internal error")
c.SendError(responses.ErrorGeneric, "Internal error")
}
c.mf = mf