From fc164cf7c398fb597edcfb3060c7b83334a680a8 Mon Sep 17 00:00:00 2001 From: Will Pazner Date: Fri, 9 Oct 2020 15:03:02 -0700 Subject: [PATCH] Make fallback Ceed use Error callback of parent --- interface/ceed-operator.c | 1 + interface/ceed.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/interface/ceed-operator.c b/interface/ceed-operator.c index 8ac4be6116..8ba4cf058e 100644 --- a/interface/ceed-operator.c +++ b/interface/ceed-operator.c @@ -57,6 +57,7 @@ int CeedOperatorCreateFallback(CeedOperator op) { if (!op->ceed->opfallbackceed) { ierr = CeedInit(fallbackresource, &ceedref); CeedChk(ierr); ceedref->opfallbackparent = op->ceed; + ceedref->Error = op->ceed->Error; op->ceed->opfallbackceed = ceedref; } ceedref = op->ceed->opfallbackceed; diff --git a/interface/ceed.c b/interface/ceed.c index 0b2316aad6..95a3de9da8 100644 --- a/interface/ceed.c +++ b/interface/ceed.c @@ -911,6 +911,9 @@ int CeedErrorStore(Ceed ceed, const char *filename, int lineno, if (ceed->parent) return CeedErrorStore(ceed->parent, filename, lineno, func, ecode, format, args); + if (ceed->opfallbackparent) + return CeedErrorStore(ceed->opfallbackparent, filename, lineno, func, ecode, + format, args); // Build message CeedInt len;