minor improve error handling in scripts
1 file changed