added warning if not theme

This commit is contained in:
Helloman892
2017-12-31 15:55:29 +00:00
parent f5dd25369a
commit b2e81528af
2 changed files with 4 additions and 2 deletions

View File

@@ -78,6 +78,7 @@ static Result install_theme_internal(Entry_List_s themes, int installmode)
{
free(body);
DEBUG("body not found\n");
throw_error("No body_LZ.bin found - is this a theme?", ERROR_LEVEL_WARNING);
return MAKERESULT(RL_PERMANENT, RS_CANCELED, RM_APPLICATION, RD_NOT_FOUND);
}
@@ -135,6 +136,7 @@ static Result install_theme_internal(Entry_List_s themes, int installmode)
{
free(body);
DEBUG("body not found\n");
throw_error("No body_LZ.bin found - is this a theme?", ERROR_LEVEL_WARNING);
return MAKERESULT(RL_PERMANENT, RS_CANCELED, RM_APPLICATION, RD_NOT_FOUND);
}