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:
commit
5e87b0dc51
@ -201,9 +201,10 @@ account_eval_password(ProfAccount *account)
|
|||||||
assert(account->eval_password != NULL);
|
assert(account->eval_password != NULL);
|
||||||
|
|
||||||
gchar **output = NULL;
|
gchar **output = NULL;
|
||||||
|
gchar **error = NULL;
|
||||||
|
|
||||||
gchar *argv[] = {"sh", "-c", account->eval_password, NULL};
|
gchar *argv[] = {"sh", "-c", account->eval_password, NULL};
|
||||||
if (!call_external(argv, &output, NULL)) {
|
if (!call_external(argv, &output, &error)) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user