diff --git a/files/sojobo_api/api/w_juju.py b/files/sojobo_api/api/w_juju.py index f177f5e..c64b949 100644 --- a/files/sojobo_api/api/w_juju.py +++ b/files/sojobo_api/api/w_juju.py @@ -278,7 +278,8 @@ def get_connection_info(authorization, c_name=None, m_name=None): else: return datastore.get_user_connection_info(authorization.username) else: - abort(errors.unauthorized) + error = errors.unauthorized() + abort(error[0], error[1]) async def disconnect(connection):