Add a more helpful error message when a parameter is missing

This is to address issue #134 raised by @bmjames