add some basic error handling to 'weave' script