Skip to content

Commit

Permalink
Add better failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudef committed Apr 7, 2012
1 parent 92eefec commit d120140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pxml.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ static int _fetch_pxml_from_pnd(char *pnd_file, char *PXML, size_t *size)
/* failure? */
if (!ret) {
fclose(pnd);
DEBFAIL(START_TAG_FAIL);
DEBFAILP("%s: %s\n", pnd_file, START_TAG_FAIL);
return RETURN_FAIL;
}

Expand All @@ -254,7 +254,7 @@ static int _fetch_pxml_from_pnd(char *pnd_file, char *PXML, size_t *size)
/* read fail */
if (!ret) {
fclose(pnd);
DEBFAIL(END_TAG_FAIL);
DEBFAILP("%s: %s\n", pnd_file, END_TAG_FAIL);
return RETURN_FAIL;
}

Expand Down

0 comments on commit d120140

Please sign in to comment.