Skip to content

Commit

Permalink
fix error message again
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed May 17, 2023
1 parent 692027a commit 31d8b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/semantics/analysis/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def visit_Log(self, node):
raise StructureException("Value is not an event", node.value)
if self.func.mutability <= StateMutability.VIEW:
raise StructureException(
f"Cannot emit logs from {self.func.mutability.lower()} functions", node
f"Cannot emit logs from {self.func.mutability.value.lower()} functions", node
)
f.fetch_call_return(node.value)
self.expr_visitor.visit(node.value)
Expand Down

0 comments on commit 31d8b76

Please sign in to comment.