Shows the right name when can't open script (doesn't show the .nsi appended)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1051 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-09-19 16:42:41 +00:00
parent 306ef235aa
commit 34ff80ab5f

View file

@ -289,6 +289,7 @@ int main(int argc, char **argv)
{
if (build.display_errors)
{
sfile[strlen(sfile)-4]=0;
fprintf(g_output,"Can't open script \"%s\"\n",sfile);
fflush(g_output);
}