Skip to content

Error message extraction #215

@kjh-giesbertz

Description

@kjh-giesbertz

Is your feature request related to a problem? Please describe.
In case a calculation fails, it is nice to know why without spitting yourself through the output files.

Describe the solution you'd like
It would be nice to have a method (error_message()?) which returns an error message, in the output module in case output.terminated_normally() returns False. Upon success this would just be an empty string, None would also do but not needed.

Describe alternatives you've considered

  • Instead of a separate routine this could also be a field in an overloaded terminated_normally(errmsg: str) routine, but I think that is less clean.
  • Using the grepper to spit myself through the output, but that is only a work-around in my opinion.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions