pgbackrest.git / summary / log / commit / refs
commit 08a44be4c38e4bc72a20c19d764be8a673c9b909
Author: David Steele <david@pgmasters.net>
Date: Wed Sep 14 23:22:48 2022 +0000
Fix incorrect storage for rendering errors.
Coverity complained of a copy/paste error here, but the actual error was what it took to be the correct "copied from" code.
In any case, the prior code would have blown up as soon as a new error type was added. Fix by updating to the writable build storage.
src/build/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/main.c b/src/build/main.c
index e57838250..7ecc468a5 100644
--- a/src/build/main.c
+++ b/src/build/main.c
@@ -67,7 +67,7 @@ main(const int argListSize, const char *const argList[])
// Error
if (strEqZ(STRDEF("error"), argList[1]))
- bldErrRender(storageRepo, bldErrParse(storageRepo));
+ bldErrRender(storageBuild, bldErrParse(storageRepo));
// Help
if (strEqZ(STRDEF("help"), argList[1]))
[parent: 240cd755d19a]