minor improve error handling in scripts
2 files changed