Skip to content

Commit

Permalink
Merge pull request #295 from ornlneutronimaging/improve_load_error_msg
Browse files Browse the repository at this point in the history
better error message during file loading
  • Loading branch information
KedoKudo committed Mar 1, 2024
2 parents bfc0433 + c058c62 commit a7002a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imars3d/backend/dataio/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ def _forgiving_reader(
"""
try:
return reader(filename)
except Exception:
logger.error(f"Cannot read {filename}, skipping.")
except Exception as e:
logger.error(f"While reading {filename}, the following error occurred: {e}")
return None


Expand Down

1 comment on commit a7002a1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitLab pipeline for imars3d-dev has been submitted for this commit: "https://code.ornl.gov/sns-hfir-scse/deployments/imars-deploy/-/pipelines/532427"

Please sign in to comment.