add a script which outputs the error