handle errors for #26
Merge pull request #27 from ucsf-ckm/error-handling

handle errors for #26