1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Merge pull request #1394 from wstrm/fix-log-errors-call-external

Log errors from eval_password
This commit is contained in:
Michael Vetter 2020-07-06 11:06:24 +02:00 committed by GitHub
commit 5e87b0dc51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,9 +201,10 @@ account_eval_password(ProfAccount *account)
assert(account->eval_password != NULL);
gchar **output = NULL;
gchar **error = NULL;
gchar *argv[] = {"sh", "-c", account->eval_password, NULL};
if (!call_external(argv, &output, NULL)) {
if (!call_external(argv, &output, &error)) {
return FALSE;
}