-
Type:
Suggestion
-
Resolution: Low Engagement
-
None
-
Component/s: Repository - Import
-
1
-
2
When a user attempts to import a repository from any external source, if the import fails, the error message is vague and does not really provide guidance as to why the failure occurred.
The current message:
Import Failed
This repository was not imported
Ask your administrators to check the logs for details
Should be changed to:
Import Failed. The repository was not imported. The message returned by Git was 'blah blah blah'". For more details ask your administrators to check the logs for transaction ID @1QOQFXAx1185x347398x0
A good example of why this would be helpful is a user entered an incorrect URL when trying to perform an import. The message that they received caused them to have to contact the administrator and, because of another issue to be logged, it took an extensive amount of research to find the correct entries in the logs. When the entries were found the message is the log showed:
exited with code 128 saying: fatal: unable to access 'http://<username>@<SOMEURL>/<project>/<repo>/git/': Could not resolve host:
Had this message been presented to the user in the error message, no research in the logs would have been necessary and the user could have resolved the error on their own.
If the reason for the failure is truly unknown and can not be presented to the user, the transaction id, would have allowed the Admin to find the failed transaction with a single grep command rather than searching based on estimated timestamps, and the username of the person who was performing the task, which turns out to not necessarily be the username that is written to the logs.
- mentioned in
-
Page Loading...