Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
giannisdoukas committed Jun 4, 2020
1 parent 13cc678 commit b592c3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cwlkernel/git/CWLGitResolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def _resolve_file(self, path: str) -> Tuple[str, Dict]:
f"{path}?ref={self._git_branch}")
github_response = requests.get(url)
if github_response.status_code != 200:
raise RuntimeError(f"Error on github api call: {github_response.status_code}: {github_response.text}")
raise RuntimeError(
f"Error on github api call for: {url}: {github_response.status_code}: {github_response.text}")
github_response = json.loads(github_response.text)
workflow = yaml.load(BytesIO(base64.b64decode(github_response['content'])), yaml.Loader)
workflow_filename = os.path.join(str(self._local_directory), path)
Expand Down

0 comments on commit b592c3d

Please sign in to comment.