Better error message for invalid or missing parameters