Fix wrong API error response

This commit is contained in:
rubenwardy 2020-05-19 17:24:57 +01:00
parent bda82d2792
commit dc455bcd87

@ -1,12 +1,12 @@
from app.models import PackageRelease, db, Permission
from app.tasks.importtasks import makeVCSRelease
from celery import uuid
from flask import jsonify, abort, url_for
from flask import jsonify, abort, make_response, url_for
import datetime
def error(status, message):
abort(status, jsonify({ "success": False, "error": message }))
abort(make_response(jsonify({ "success": False, "error": message }), status))
def handleCreateRelease(token, package, title, ref):