mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
more helpful assert msgs
This commit is contained in:
parent
355f59778f
commit
ace3842c21
@ -19,10 +19,10 @@ editUsername = config.GetString(usernameConfigVar, undefinedUsername)
|
|||||||
# call this to make sure things have been set up correctly
|
# call this to make sure things have been set up correctly
|
||||||
def assertReadyToEdit():
|
def assertReadyToEdit():
|
||||||
assert editUsername != undefinedUsername, (
|
assert editUsername != undefinedUsername, (
|
||||||
"you must config '%s'" % usernameConfigVar)
|
"you must config '%s'; see %s.py" % (usernameConfigVar, __name__))
|
||||||
# Feel free to add your name to the table if it's not in there
|
# Feel free to add your name to the table if it's not in there
|
||||||
assert editUsername in username2entIdBase, (
|
assert editUsername in username2entIdBase, (
|
||||||
"unknown editor username '%s'" % username)
|
"unknown editor username '%s'; see %s.py" % (editUsername, __name__))
|
||||||
|
|
||||||
def getEntIdAllocRange():
|
def getEntIdAllocRange():
|
||||||
"""range of valid entId values for this user.
|
"""range of valid entId values for this user.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user