summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-25 17:44:01 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:55 -0500
commit09d2c02422490fa6d742547433f658145c2faed3 (patch)
treeae332ec5df517eba3b5694ba3bf21b0f46655f9d /src
parentc29b5061394f58d8a40363e39fc00a48c50deb15 (diff)
downloadperk-09d2c02422490fa6d742547433f658145c2faed3.tar.bz2
perk-09d2c02422490fa6d742547433f658145c2faed3.tar.xz
internals: pe_record_error(): set unit information in error record.
Diffstat (limited to 'src')
-rw-r--r--src/internal/perk_errinfo_impl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/internal/perk_errinfo_impl.c b/src/internal/perk_errinfo_impl.c
index bd082d4..81fb80d 100644
--- a/src/internal/perk_errinfo_impl.c
+++ b/src/internal/perk_errinfo_impl.c
@@ -28,6 +28,9 @@ int pe_record_error(
*ictx->errinfp = &ictx->erribuf[ictx->errinfp - ictx->erriptr];
erri = *ictx->errinfp;
+ erri->euctx = ictx->euctx;
+ erri->eunit = ictx->eunit;
+
erri->edctx = dctx;
erri->esyscode = esyscode;
erri->elibcode = elibcode;