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

Make the CivetOutput viewer more tolerant of missing files #237

Open
prioux opened this issue Jun 8, 2022 · 0 comments
Open

Make the CivetOutput viewer more tolerant of missing files #237

prioux opened this issue Jun 8, 2022 · 0 comments

Comments

@prioux
Copy link
Member

prioux commented Jun 8, 2022

I regularly see exception raised internally in CBRAIN when people are trying to view incomplete CIVET outputs.

We should make the view code more tolerant, it should show what it can and inform the user about what is missing.

I'm attaching the stack trace of one such event. It shows the view code was trying to open the 'verify' subdirectory.

Errno::ENOENT: No such file or directory @ dir_initialize - 35580-1-2022-06-08/verify

BrainPortal/app/models/data_provider.rb:615:in `open'
BrainPortal/app/models/data_provider.rb:615:in `entries'
BrainPortal/app/models/data_provider.rb:615:in `block in cache_collection_index'
BrainPortal/app/models/data_provider.rb:608:in `chdir'
BrainPortal/app/models/data_provider.rb:608:in `cache_collection_index'
BrainPortal/lib/smart_data_provider_interface.rb:155:in `cache_collection_index'
BrainPortal/app/models/userfile.rb:596:in `cache_collection_index'
BrainPortal/app/models/userfile.rb:188:in `list_files'
BrainPortal/cbrain_plugins/installed-plugins/userfiles/civet_output/views/_civet_output.html.erb:33:in `_cbrain_plugins_installed_plugins_userfiles_civet_output_views__civet_output_html_erb__2404919374744253284_60485600'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant