Skip to content

Commit

Permalink
add back exception for a bit context
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski committed Feb 2, 2025
1 parent f3f41c1 commit eb6e1b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aiida/manage/configuration/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def create_profile(
profile.storage_cls.initialise(profile)
except Exception as exception:
raise StorageMigrationError(
f'During initialisation of storage backend. Please check above traceback for cause.'
f'During initialisation of storage backend following excepion was raised: {exception}.\n Please check above for full traceback.'
)
LOGGER.report('Storage initialisation completed.')

Expand Down
2 changes: 1 addition & 1 deletion tests/manage/configuration/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def raise_storage_migration_error(*_, **__):
with pytest.raises(ValueError, match=r'The entry point `.*` could not be loaded'):
config.create_profile(profile_name, 'core.non_existant', {})

with pytest.raises(exceptions.StorageMigrationError, match='During initialisation of storage backend. Please check above traceback for cause.*'):
with pytest.raises(exceptions.StorageMigrationError, match=r'During initialisation of storage backend following excepion was raised: Monkey patchted error.*'):
config.create_profile(profile_name, 'core.sqlite_temp', {})


Expand Down

0 comments on commit eb6e1b4

Please sign in to comment.