Jacek Caban (@jacek) commented about programs/wscript/main.c:
if(!filename) { - WINE_FIXME("No file name specified\n"); + print_string(L"Input Error: There is no script file specified."); return 1; } + res = GetFullPathNameW(filename, ARRAY_SIZE(scriptFullName), scriptFullName, &filepart); if(!res || res > ARRAY_SIZE(scriptFullName)) return 1;
+ if(GetFileAttributesW(scriptFullName) == INVALID_FILE_ATTRIBUTES) { + WCHAR buf[MAX_PATH + 64]; + swprintf(buf, ARRAY_SIZE(buf), L"Input Error: Can not find script file \"%s\".", scriptFullName); + print_string(buf); + return 1; + }
This should probably be part of the error handling when opening the file. We could move reading the script file earlier if needed. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10518#note_134532