Skip to content
3 changes: 2 additions & 1 deletion src/coreclr/nativeaot/Runtime/unix/PalCreateDump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ BuildCreateDumpCommandLine(
{
if (g_szCreateDumpPath == nullptr || g_ppidarg == nullptr)
{
fprintf(stderr, "DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist\n");
return false;
}

Expand Down Expand Up @@ -624,7 +625,7 @@ PalCreateDumpInitialize()
struct stat fileData;
if (stat(program, &fileData) == -1 || !S_ISREG(fileData.st_mode))
{
fprintf(stderr, "DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: %s\n", program);
free(program);
return true;
}
g_szCreateDumpPath = program;
Expand Down
Loading