You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The individual errors logged by Model.check() are not really inspectable except by a human reading stderr. Instead, the function could be replaced with something like Model.errors() which returns a data structure containing those error messages.
The data structure could be serialized as metadata when --check is used, thus removing the need to deal with synchronously flushing stdout and stderr (see #60).
The function's name change is so something like if model.errors(): ... executes the body of the if statement if there ARE errors, whereas with if model.check(): ... the intuition is that the body executes if there are no errors.
The text was updated successfully, but these errors were encountered:
The individual errors logged by
Model.check()
are not really inspectable except by a human reading stderr. Instead, the function could be replaced with something likeModel.errors()
which returns a data structure containing those error messages.The data structure could be serialized as metadata when
--check
is used, thus removing the need to deal with synchronously flushing stdout and stderr (see #60).The function's name change is so something like
if model.errors(): ...
executes the body of the if statement if there ARE errors, whereas withif model.check(): ...
the intuition is that the body executes if there are no errors.The text was updated successfully, but these errors were encountered: