You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-17 01:12:23 +02:00
Add strCatZ().
strCat() did not follow our convention of appending Z to functions that accept zero-terminated strings rather than String objects. Add strCatZ() to accept zero-terminated strings and update strCat() to accept String objects. Use LF_STR where appropriate but don't use other String constants because they do not improve readability.
This commit is contained in:
@ -168,8 +168,8 @@ protocolClientProcessError(ProtocolClient *this, KeyValue *errorKv)
|
||||
{
|
||||
const String *stack = varStr(kvGet(errorKv, VARSTR(PROTOCOL_ERROR_STACK_STR)));
|
||||
|
||||
strCat(throwMessage, "\n");
|
||||
strCat(throwMessage, stack == NULL ? "no stack trace available" : strPtr(stack));
|
||||
strCat(throwMessage, LF_STR);
|
||||
strCat(throwMessage, stack == NULL ? STRDEF("no stack trace available") : stack);
|
||||
}
|
||||
|
||||
THROWP(type, strPtr(throwMessage));
|
||||
|
Reference in New Issue
Block a user