Skip to content

Commit

Permalink
Improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed Jan 2, 2025
1 parent 011e07f commit d4cd25f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sage/databases/cremona.py
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ def CremonaDatabase(name=None, mini=None, set_global=None):
sage: C = CremonaDatabase(mini=False) # optional - !database_cremona_ellcurve
Traceback (most recent call last):
...
ValueError: full Cremona database is not available; consider using mini Cremona database by mini=True
ValueError: the full Cremona database is not available; consider using the mini Cremona database by setting mini=True
"""
if set_global is not None:
from sage.misc.superseded import deprecation
Expand All @@ -1706,16 +1706,16 @@ def CremonaDatabase(name=None, mini=None, set_global=None):
name = 'cremona mini'
else:
if not DatabaseCremona().is_present():
raise ValueError('full Cremona database is not available; '
'consider using mini Cremona database by mini=True')
raise ValueError('the full Cremona database is not available; '
'consider using the mini Cremona database by setting mini=True')
name = 'cremona'
elif name == 'cremona mini':
mini = True
elif name == 'cremona':
mini = False
else:
if mini is None:
raise ValueError('mini must be set as either True or False')
raise ValueError('the mini option must be set to True or False')

if mini:
return MiniCremonaDatabase(name)
Expand Down

0 comments on commit d4cd25f

Please sign in to comment.