Skip to content

Commit

Permalink
Show operation name when failing to create (#52)
Browse files Browse the repository at this point in the history
This can be relatively helpful to debug.
  • Loading branch information
Pangoraw authored Feb 11, 2024
1 parent 3c0a2d0 commit 27a92eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IR/IR.jl
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ function create_operation(
end
op = API.mlirOperationCreate(state)
if mlirIsNull(op)
error("Create Operation failed")
error("Create Operation '$name' failed")
end
Operation(op, true)
end
Expand Down

0 comments on commit 27a92eb

Please sign in to comment.