Commit 428e8a5a authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

msi: Prevent cryptic error.

parent bb53f8a7
......@@ -1119,7 +1119,10 @@ static UINT copy_package_to_temp( LPCWSTR szPackage, LPWSTR filename )
if( !CopyFileW( szPackage, filename, FALSE ) )
{
UINT error = GetLastError();
ERR("failed to copy package %s to %s (%u)\n", debugstr_w(szPackage), debugstr_w(filename), error);
if ( error == ERROR_FILE_NOT_FOUND )
ERR("can't find %s\n", debugstr_w(szPackage));
else
ERR("failed to copy package %s to %s (%u)\n", debugstr_w(szPackage), debugstr_w(filename), error);
DeleteFileW( filename );
return error;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment