1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-09-16 09:06:18 +02:00

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.
This commit is contained in:
David Steele
2022-09-14 16:22:48 -07:00
parent 240cd755d1
commit 08a44be4c3

View File

@@ -67,7 +67,7 @@ main(const int argListSize, const char *const argList[])
// Error // Error
if (strEqZ(STRDEF("error"), argList[1])) if (strEqZ(STRDEF("error"), argList[1]))
bldErrRender(storageRepo, bldErrParse(storageRepo)); bldErrRender(storageBuild, bldErrParse(storageRepo));
// Help // Help
if (strEqZ(STRDEF("help"), argList[1])) if (strEqZ(STRDEF("help"), argList[1]))