Fix bad script.
More humane error output.