Fix how api_core.operation populates exception errors (#4231)

1 file changed