Replies: 1 comment 6 replies
-
Thanks for the comments. We will investigate and get back to you if we have any questions. I do agree that some of the errors need to be improved. There are still some situations where a full stack trace is printed and the I'm not sure about the exit codes. We'll have to discuss. I do like the |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am posting this as a discussion and not an issue, to let the team decide if its an issue-worthy topic.
I have encountered two issues that I wish handled differently by
retype build
:Exit code for warnings
When running
retype build
on a site that generates warnings (like a link to a broken URL in one of the files), I believe the exit code should be non zero. This is particularly important in the GitHub Action - it should also fail if there are warnings.Of course, in case there are some other types of warnings that are truly warnings, then perhaps this should be configurable (
build.strict: true
orbuild.fail_on_warning: true
).My rule of thumb is this: If
retype build
will end up building a site with problems, I want the build to tell me that it failed in the exit code.Human friendly error
I wanted to test how errors look, so I just changed the config input directory to one that does not exist. The error displayed to the user seems like a backtrace that the developer should care about, not the user. As a user, I expect to see a friendly error (only the message, and perhaps the class of the exception):
Input directory does not exist: '/vagrant/sites/jobly/i-broke-this'
Beta Was this translation helpful? Give feedback.
All reactions