Skip to content

Commit

Permalink
Added the error message return
Browse files Browse the repository at this point in the history
Signed-off-by: xiaor2 <xiaor2@illinois.edu>
  • Loading branch information
xiaor2 committed Apr 22, 2024
1 parent 192a70a commit b8d6c0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api-engine/api/routes/chaincode/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ def package(self, request):
metadata = json.loads(metadata_content)
label = metadata.get("label")
else:
print("Metadata file not found in the chaincode package.")
return Response(
err("Metadata file not found in the chaincode package."), status=status.HTTP_400_BAD_REQUEST
)

org = request.user.organization
# qs = Node.objects.filter(type="peer", organization=org)
Expand Down

0 comments on commit b8d6c0e

Please sign in to comment.