Phrase error messages as "Failed to", not "Could not" or "Couldn't" (#1298)

This commit is contained in:
Sylvie
2024-02-18 08:52:31 -05:00
committed by GitHub
parent ef0d973187
commit d71a161bc9
12 changed files with 20 additions and 21 deletions

View File

@@ -468,7 +468,7 @@ static void parseACOFile(std::filebuf &file) {
char buf[10];
if (file.sgetn(buf, 2) != 2) {
error("Couldn't read ACO file version");
error("Failed to read ACO file version");
return;
}
if (readBE<uint16_t>(buf) != 1) {
@@ -477,7 +477,7 @@ static void parseACOFile(std::filebuf &file) {
}
if (file.sgetn(buf, 2) != 2) {
error("Couldn't read number of colors in palette file");
error("Failed to read number of colors in palette file");
return;
}
uint16_t nbColors = readBE<uint16_t>(buf);