diff --git a/Source/exehead/exec.c b/Source/exehead/exec.c index 455baab4..f04d21d6 100644 --- a/Source/exehead/exec.c +++ b/Source/exehead/exec.c @@ -335,10 +335,12 @@ static int NSISCALL ExecuteEntry(entry *entry_) { if (GetLastError() != ERROR_ALREADY_EXISTS) { + log_printf3("CreateDirectory: can't create \"%s\" (err=%d)",buf,GetLastError()); exec_error++; } else if ((GetFileAttributes(buf1) & FILE_ATTRIBUTE_DIRECTORY) == 0) { + log_printf3("CreateDirectory: can't create \"%s\" - a file already exists",buf); exec_error++; } }