##// END OF EJS Templates
api: maked logging of get_repo_file API function tell a bit more info about errors.
marcink -
r3480:750f1746 default
parent child Browse files
Show More
@@ -581,8 +581,10 b' def get_repo_file(request, apiuser, repo'
581 content=content, max_file_bytes=max_file_bytes, cache=cache)
581 content=content, max_file_bytes=max_file_bytes, cache=cache)
582
582
583 except Exception:
583 except Exception:
584 log.exception("Exception occurred while trying to get repo node")
584 log.exception("Exception occurred while trying to get repo %s file",
585 raise JSONRPCError('failed to get repo: `%s` nodes' % repo.repo_name)
585 repo.repo_name)
586 raise JSONRPCError('failed to get repo: `{}` file at path {}'.format(
587 repo.repo_name, file_path))
586
588
587 return node
589 return node
588
590
General Comments 0
You need to be logged in to leave comments. Login now