Standard: Code output #176
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We are expecting you to write the code to return a user-friendly messages so that the error can be actually used as helpful tool for diagnostics and to avoid confusion of the end-users.
for example in simplified scenario:
Returns
rm: cannot remove 'something': No such file or directory
which may not be understandable by regular users thus we are expecting:Which returns:
rm: cannot remove 'something': No such file or directory
FATAL: Unable to remove a file 'something'
You should do your best to avoid contact with the end-user at all cost when it's in terms of diagnostics where you are expected to know what the issue is just from the output. If you are not able to do that then it's considered a bug that might require adding more logging in the code.
This is done to make the debugging of the code that failed in the wild more efficient since end-users or end-user's computer might lie (willingly or unwillingly), but your code is expected to be more trustworthy in that case.
Note that this is not an excuse to not provide the required support for your code so that it can be used by the community.
Issue-Label Bot is automatically applying the label
feature_request
to this issue, with a confidence of 0.88. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.