Improve error messages

NULL error messages have been given a description.

Messages that weren't descriptive enough now also print the name of the
function that has failed.

Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
Antonio Niño Díaz
2018-01-16 22:38:20 +00:00
parent 975200834e
commit 311b412f5d
5 changed files with 27 additions and 22 deletions

View File

@@ -200,7 +200,7 @@ static uint32_t getsectid(struct Section *pSect)
sec = sec->pNext;
}
fatalerror("INTERNAL: Unknown section");
fatalerror("%s: Unknown section", __func__);
return (uint32_t)(-1);
}