]> git.tuebingen.mpg.de Git - paraslash.git/commit
Check return value of lsu_com_help().
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 18 Mar 2025 18:31:33 +0000 (19:31 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 3 May 2025 16:45:49 +0000 (18:45 +0200)
commit118166a527ae5f572e3faf5e1f3e569659342e7e
tree028ae3934c42e97a606bcdc2872399e57e3003af
parent90756d756f3725b4840ffc252485b32a85bcce54
Check return value of lsu_com_help().

This function fails if an invalid command name is passed as the argument, yet
all callers ignore the error. Modify the callers to print the strerror text as
appropriate and no longer do that in lsu_lopsub_error(). Rename this function
and introduce the error type argument to print more meaningful error messages.

One visible consequence is that

para_client help does-not-exist

used to succeed while it now exits with status 1.
audiod_command.c
command.c
lsu.c
play.c