Fix error messages
This commit is contained in:
parent
955f0ceacc
commit
2f750c2478
2 changed files with 3 additions and 3 deletions
|
|
@ -6,8 +6,8 @@ from .get_function_metadata_store import get_function_metadata_store
|
|||
|
||||
def assert_function_is_not_finalised(func: Callable) -> None:
|
||||
error_message = (
|
||||
"The outer-most (first) decorator has to be `@GreatAI.deploy`. "
|
||||
+ f"In the case of `{func.__name__}`, it is not: fix this by moving `@GreatAI.deploy` to the top."
|
||||
"The outer-most (first) decorator has to be `@GreatAI.create`. "
|
||||
+ f"In the case of `{func.__name__}`, it is not: fix this by moving `@GreatAI.create` to the top."
|
||||
)
|
||||
|
||||
if get_function_metadata_store(func).is_finalised:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue