diff options
Diffstat (limited to '')
-rw-r--r-- | print_error.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/print_error.c b/print_error.c index 245caa0..9c8bf1c 100644 --- a/print_error.c +++ b/print_error.c @@ -19,6 +19,11 @@ print_error(struct liberror_error *error, FILE *fp, char *prefix) *strchr(prefix, '\0') = ' '; switch (error->details_type) { + case LIBERROR_DETAILS_USER: + if (error->details.user.print_data) + error->details.user.print_data(error->details.user.data, fp, prefix); + break; + case LIBERROR_DETAILS_ONE_FILE: if (error->details.one_file.fd >= 0 || error->details.one_file.name) { fprintf(fp, "%sDetails:\n", prefix); @@ -57,7 +62,6 @@ print_error(struct liberror_error *error, FILE *fp, char *prefix) break; case LIBERROR_DETAILS_NONE: - case LIBERROR_DETAILS_USER: default: break; } |