Commit 364af0c0 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Make explicit check for NS file and exit with status so that user sees

the message instead of tbops.
parent 06be9146
......@@ -71,6 +71,14 @@ else {
$nsfile = "foo.ns";
# Check for existence of NS file and exit with error such that web
# interface tells the user (positive exit value).
if (! -f $tempfile || ! -r $tempfile) {
print STDERR "*** $0:\n".
" $tempfile does not exist or is not a readable file!\n";
exit(1);
}
#
# Make a temp dir and copy the NS file into it. We run the scripts
# from that directory cause it writes temp files.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment