am: improve author-script error reporting