more functions, cleanup and simple error checking

This commit is contained in:
Such Meme, Many Skill
2020-03-31 15:34:19 +02:00
parent 38f349618f
commit 30afcddd3a
5 changed files with 96 additions and 101 deletions

View File

@@ -20,7 +20,8 @@ enum utils_err_codes_te_call {
ERR_EMMC_READ_FAILED,
ERR_EMMC_WRITE_FAILED,
ERR_FILE_TOO_BIG_FOR_DEST,
ERR_SD_EJECTED
ERR_SD_EJECTED,
ERR_PARSE_FAIL
};
extern const char *utils_err_codes_te[];

View File

@@ -49,7 +49,8 @@ const char *utils_err_codes_te[] = { // these start at 50
"EMMC READ FAILED",
"EMMC WRITE FAILED",
"FILE TOO BIG FOR DEST",
"SD EJECTED"
"SD EJECTED",
"PARSING FAILED"
};
const char *pkg2names[] = {