8000 improved error message · Sivateja0689/python-sasctl@e2a0dd9 · GitHub
[go: up one dir, main page]

Skip to content

Commit e2a0dd9

Browse files
committed
improved error message
1 parent e8511fe commit e2a0dd9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sasctl/tasks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ def register_model(model, name, project, repository=None, input=None,
261261
'model functionality may not be available.')
262262
else:
263263
# Otherwise, the model better be a dictionary of metadata
264-
assert isinstance(model, dict)
264+
assert isinstance(model, dict), "Expected an instance of %r. " \
265+
" Received %r instead." % (dict(), model)
266+
265267

266268
if create_project:
267269
vars = model.get('inputVariables', [])[:]

0 commit comments

Comments
 (0)
0