Skip to content

fix error handling in presenter script#40

Open
steve-fischer-200 wants to merge 1 commit intomasterfrom
fix-presenter-script
Open

fix error handling in presenter script#40
steve-fischer-200 wants to merge 1 commit intomasterfrom
fix-presenter-script

Conversation

@steve-fischer-200
Copy link
Copy Markdown
Collaborator

  • fail if no wdk connection after 180 seconds
  • fail on non-zero exit from called scripts


# make output dir and run commands to produce output

mkdir $DESTINATION_DIRECTORY &&\
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure about this one. By chaining commands with &&, it ensures that it doesn't run the subsequent command if the previous one fails.
On the other hand, how likely is it for the mkdir or echo to fail? Unless the idea was to skip running ssCreateWdkMetaBatch if ssCreateWdkRecordsBatch fails.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If that's what we are after, we should consider extending the chain to include call to ssLoadMultipleBatches as well.

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.

2 participants