Improve error reporting when an automation script fails to load

Cut down on the amount of redundant information displayed so that the
actual error is visible.