validate the text argument passed to Schedule

If something else is passed, the error message is a bit arcane.