Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve import error message [VS-437] #7855

Merged
merged 6 commits into from
May 18, 2022

Conversation

mcovarr
Copy link
Collaborator

@mcovarr mcovarr commented May 17, 2022

No description provided.

message = "The number of external_sample_names, sample input_vcfs and sample input_vcf_indexes are not the same."
external_sample_count = length(external_sample_names),
input_length = input_length,
input_indexes_length = input_indexes_length
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we use TerminateWorkflow anywhere else? We're making it very specific here---does it just echo the message?!?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah the TerminateWorkflow name seems very generic but actually it's only ever called from this workflow for this reason.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it could be more generic if it was in GvsUtils and only took the error message as a string argument.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes this was my thinking as well. I like that much better

@codecov
Copy link

codecov bot commented May 17, 2022

Codecov Report

❗ No coverage uploaded for pull request base (ah_var_store@1dc9776). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             ah_var_store     #7855   +/-   ##
================================================
  Coverage                ?   86.293%           
  Complexity              ?     35189           
================================================
  Files                   ?      2170           
  Lines                   ?    164876           
  Branches                ?     17784           
================================================
  Hits                    ?    142277           
  Misses                  ?     16276           
  Partials                ?      6323           

@mcovarr mcovarr force-pushed the vs_437_improve_import_error_message branch from 80c909f to 0cbfb14 Compare May 18, 2022 14:51
@mcovarr mcovarr force-pushed the vs_437_improve_import_error_message branch from 042483a to dac8f52 Compare May 18, 2022 15:51
command <<<
set -o errexit

# To avoid issues with special characters within the message, write the message to a file.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh no that sounds super annoying!

@mcovarr mcovarr merged commit 6767947 into ah_var_store May 18, 2022
@mcovarr mcovarr deleted the vs_437_improve_import_error_message branch May 18, 2022 22:31
This was referenced Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants