Skip to content

Commit

Permalink
Merge pull request #1820 from glotzerlab/improve-data-access-error
Browse files Browse the repository at this point in the history
Improve the data access error message.
  • Loading branch information
joaander committed Jun 18, 2024
2 parents 0fa77d3 + 439e27c commit 54dba07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hoomd/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ def __init__(self, data_name):

def __str__(self):
"""Returns the error message."""
return (f'The property {self.data_name} is unavailable until the '
'simulation runs for 0 or more steps.')
return (f'The property {self.data_name} is not available until the '
'operation is added to a simulation AND `simulation.run` '
'has been called.')


class TypeConversionError(ValueError):
Expand Down

0 comments on commit 54dba07

Please sign in to comment.