# HG changeset patch # User Marcin Kuzminski # Date 2019-02-14 20:46:24 # Node ID 750f1746e0805f5caab2eb2678c992a76783194f # Parent 58288c09f32d6320381cc02bb6f74359257ab1cf api: maked logging of get_repo_file API function tell a bit more info about errors. diff --git a/rhodecode/api/views/repo_api.py b/rhodecode/api/views/repo_api.py --- a/rhodecode/api/views/repo_api.py +++ b/rhodecode/api/views/repo_api.py @@ -581,8 +581,10 @@ def get_repo_file(request, apiuser, repo content=content, max_file_bytes=max_file_bytes, cache=cache) except Exception: - log.exception("Exception occurred while trying to get repo node") - raise JSONRPCError('failed to get repo: `%s` nodes' % repo.repo_name) + log.exception("Exception occurred while trying to get repo %s file", + repo.repo_name) + raise JSONRPCError('failed to get repo: `{}` file at path {}'.format( + repo.repo_name, file_path)) return node