diff options
author | Simon Gomizelj <simongmzlj@gmail.com> | 2012-08-13 15:33:32 -0400 |
---|---|---|
committer | Simon Gomizelj <simongmzlj@gmail.com> | 2012-08-13 15:33:32 -0400 |
commit | ffdf3ab3e374aa1bc7acfb6e5dd35bee71af5a13 (patch) | |
tree | 32d4c23b2f75724d7ae16fa53283baba42b2d3c1 | |
parent | 38b8be02986486b0ca696b07a2fc5a888af2af28 (diff) | |
download | mirror-ponymix-ffdf3ab3e374aa1bc7acfb6e5dd35bee71af5a13.tar.gz mirror-ponymix-ffdf3ab3e374aa1bc7acfb6e5dd35bee71af5a13.tar.bz2 mirror-ponymix-ffdf3ab3e374aa1bc7acfb6e5dd35bee71af5a13.zip |
deduplicate some error handling
-rw-r--r-- | pulsemix.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -838,15 +838,12 @@ int main(int argc, char *argv[]) } if (pulse.head == NULL) { - if (mode && !id) { + if (mode && !id) warnx("%s id not set, no default operations", pp_name); - rc = 1; - goto done; - } else { + else warnx("%s not found: %s", pp_name, id ? id : "default"); - rc = 1; - goto done; - } + rc = 1; + goto done; } if (arg && fn_get_by_name) |