mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
tools: handle connection error
This commit is contained in:
parent
2e06d0819b
commit
d68e7ed58a
1 changed files with 5 additions and 1 deletions
|
|
@ -2816,7 +2816,11 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
pw_context_load_module(data.context, "libpipewire-module-link-factory", NULL, NULL);
|
pw_context_load_module(data.context, "libpipewire-module-link-factory", NULL, NULL);
|
||||||
|
|
||||||
do_connect(&data, "connect", opt_remote, &error);
|
if (!do_connect(&data, "connect", opt_remote, &error)) {
|
||||||
|
fprintf(stderr, "Error: \"%s\"\n", error);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (optind == argc) {
|
if (optind == argc) {
|
||||||
data.interactive = true;
|
data.interactive = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue