diff --git a/src/sbbs3/js_internal.c b/src/sbbs3/js_internal.c
index bd4d599cb82aaa594e9ea063b516230f99c961b4..7fa8ed28a4ecb94bc78ec8cf998471741c79acce 100644
--- a/src/sbbs3/js_internal.c
+++ b/src/sbbs3/js_internal.c
@@ -390,7 +390,7 @@ js_execfile(JSContext *cx, uintN argc, jsval *arglist)
 	free(cmd);
 
 	if(!fexistcase(path)) {
-		JS_ReportError(cx, "Can't find script");
+		JS_ReportError(cx, "Script file (%s) does not exist", path);
 		free(startup_dir);
 		return JS_FALSE;
 	}
@@ -449,7 +449,6 @@ js_execfile(JSContext *cx, uintN argc, jsval *arglist)
 	if(js_script == NULL) {
 		/* If the script fails to compile, it's not a fatal error
 		 * for the caller. */
-		free(startup_dir);
 		if (JS_IsExceptionPending(cx)) {
 			JS_GetPendingException(cx, &rval);
 			JS_SET_RVAL(cx, arglist, rval);