From 8a314b6b40b20bb0d908df0f1af8e2f6292c1b0f Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 6 Mar 2012 16:15:29 +0100 Subject: scripts/gen-sfs: better error handling --- scripts/gen-sfs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'scripts/gen-sfs') diff --git a/scripts/gen-sfs b/scripts/gen-sfs index 619ac08f..7dec7ee7 100755 --- a/scripts/gen-sfs +++ b/scripts/gen-sfs @@ -27,7 +27,10 @@ FORM NGAUSS 5 SYMM $SYMM END EOF -if [ $? -ne 0 ]; then exit 1; fi +if [ $? -ne 0 ]; then + echo "Failed! Please examine gen-sfs.html for more information." + exit 1 +fi echo "Running cad to get the right asymmetric unit..." cad HKLIN1 ${PDB}.mtz HKLOUT ${PDB}-sorted.mtz >> gen-sfs.html <> gen-sfs.html < ${PDB}.hkl << WIBBLE use strict; -- cgit v1.2.3