Mercurial > hg > webaudioevaluationtool
diff php/requestKey.php @ 2514:fb8f43204ae0
Fix for #158
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Mon, 24 Oct 2016 11:01:55 +0100 |
parents | 4cbd314e5d9f |
children | f41389149eab |
line wrap: on
line diff
--- a/php/requestKey.php Mon Oct 24 10:57:50 2016 +0100 +++ b/php/requestKey.php Mon Oct 24 11:01:55 2016 +0100 @@ -44,7 +44,7 @@ $filename = "../saves/save-".$key.".xml"; $fileHandle = fopen($filename, 'w'); if ($fileHandle == FALSE) { - echo "<response><state>ERROR</state><key>".$key."</key></response>"; + echo "<response><state>ERROR</state><key>".$key."</key><message>Could not open file for writing</message></response>"; return; } fclose($fileHandle);