Logo (Image): ensure line ending is printed when printing errors

This commit is contained in:
李通洲 2024-05-04 19:14:45 +08:00
parent 2fc9230b29
commit 9fee36a286

View File

@ -781,7 +781,7 @@ static bool printImageIfExistsSlowPath(FFLogoType type, bool printError)
if(!getCharacterPixelDimensions(&requestData))
{
if(printError)
fputs("Logo: getCharacterPixelDimensions() failed", stderr);
fputs("Logo: getCharacterPixelDimensions() failed\n", stderr);
return false;
}
@ -798,7 +798,7 @@ static bool printImageIfExistsSlowPath(FFLogoType type, bool printError)
//We can safely return here, because if realpath failed, we surely won't be able to read the file
ffStrbufDestroy(&requestData.cacheDir);
if(printError)
fputs("Logo: Querying realpath of the image source failed", stderr);
fputs("Logo: Querying realpath of the image source failed\n", stderr);
return false;
}
ffStrbufRecalculateLength(&requestData.cacheDir);
@ -864,7 +864,6 @@ bool ffLogoPrintImageIfExists(FFLogoType type, bool printError)
return false;
}
if(type == FF_LOGO_TYPE_IMAGE_ITERM)
return printImageIterm(printError);