common-workflow-language / common-workflow-language/cwltool

Missing error message when using empty file

Open
#1,650 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
376
Forks
255
Avg merge
2d 7h
Merged PRs (30d)
12

Description

## Issue
When running the cwltool with an empty CWL or YML file, the error message is empty.

![image](https://user-images.githubusercontent.com/22368429/160111154-5302a7d4-7291-4e09-8969-a39b93e880d4.png)

## Full Traceback
```pytb
INFO /rnaseq-cwl-training-exercises/env/bin/cwltool 3.1.20220224085855
INFO Resolved 'rna_seq_workflow.cwl' to 'file:/rnaseq-cwl-training-exercises/rna_seq_workflow.cwl'
ERROR I'm sorry, I couldn't load this CWL file.
The error was:
Traceback (most recent call last):
File "/rnaseq-cwl-training-exercises/env/lib/python3.8/site-packages/cwltool/main.py", line 1109, in main
loadingContext, workflowobj, uri = fetch_document(uri, loadingContext)
File "/rnaseq-cwl-training-exercises/env/lib/python3.8/site-packages/cwltool/load_tool.py", line 133, in fetch_document
loadingContext.loader.fetch(fileuri, content_types=CWL_CONTENT_TYPES),
File "schema_salad/ref_resolver.py", line 990, in fetch
StopIteration
```

## Your Environment
* cwltool version: 3.1.20220224085855

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.