Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message when opening files #11952

Closed
mantid-builder opened this issue Feb 18, 2015 · 1 comment
Closed

Improve error message when opening files #11952

mantid-builder opened this issue Feb 18, 2015 · 1 comment
Assignees
Milestone

Comments

@mantid-builder
Copy link
Collaborator

Original Reporter: @FedeMPouzols

When you try to Load() a file that is not readable you'll get an error like this:

/home/fedemp/test/build-mantid/bin/mantid/simpleapi.pyc in Load(Filename, **kwargs)
     87     algm = _create_algorithm_object('Load')
     88     _set_logging_option(algm, kwargs)
---> 89     algm.setProperty('Filename', filename) # Must be set first
     90     # Remove from keywords so it is not set twice
     91     try:

ValueError: HierarchicalFileDescriptor::isHierarchical - Unable to open file '/home/fedemp/mantid/TrainingCourseData/LOQ48097.raw'

which can be a bit confusing. See how to make it more clear, suggest that you might not have read permission on the file, etc.

@mantid-builder
Copy link
Collaborator Author

This issue was originally trac ticket 11113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants