better error message on receiving snapshot
This commit is contained in:
parent
0485604512
commit
096704935d
|
@ -90,7 +90,7 @@ class NewSnapshotView(ApiMixing):
|
||||||
ev_uuid = data["credentialSubject"].get("uuid")
|
ev_uuid = data["credentialSubject"].get("uuid")
|
||||||
|
|
||||||
if not ev_uuid:
|
if not ev_uuid:
|
||||||
txt = "error: the snapshot not have uuid"
|
txt = "error: the snapshot does not have an uuid"
|
||||||
logger.error("%s", txt)
|
logger.error("%s", txt)
|
||||||
return JsonResponse({'status': txt}, status=500)
|
return JsonResponse({'status': txt}, status=500)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue