Commit aa5602f7 authored by Chad Barb's avatar Chad Barb
Browse files

Fulfilled Leigh's request that error message doesn't report path and filename.

Also expanded error message.
parent 5dbe34ac
......@@ -31,8 +31,10 @@ if (isset($nsdata) && strcmp($nsdata, "") != 0) {
if (! file_exists($nsfile)) {
PAGEHEADER("View Generated NS File");
USERERROR("Could not find temporary file \"$nsfile\"<br>" .
"(Did you copy and paste an URL incorrectly?)", 1);
USERERROR("Could not find temporary file for user \"$uid\" with id \"$nsref\".<br>\n" .
"You likely copy-and-pasted an URL incorrectly,<br>\n" .
"or you've already used the file to create an experiment (thus erasing it),<br>\n" .
"or the file has expired.\n", 1 );
} else {
$fp = fopen($nsfile, "r");
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