Better error message when unable to get diags

Fixes #72.