show a well formatted error message when error in client script
show better error message for client script errors
allow attach for batch
Merge branch 'master' into edge