diff options
author | Harald Welte <laforge@netfilter.org> | 2009-11-14 10:11:45 +0100 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2009-11-14 10:11:45 +0100 |
commit | 20f9831168b59ee881414d29baba56ef68f850da (patch) | |
tree | 3281b4ec4f3937aee47314e27ef0e703afb6a9ce /openbsc/src/vty_interface_layer3.c | |
parent | af8c7b497ea37c9030133de01029f2e20bb54da8 (diff) |
VTY (silent sms / sms): better error reporting
Diffstat (limited to 'openbsc/src/vty_interface_layer3.c')
-rw-r--r-- | openbsc/src/vty_interface_layer3.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/openbsc/src/vty_interface_layer3.c b/openbsc/src/vty_interface_layer3.c index fe5b667f0..fe107030e 100644 --- a/openbsc/src/vty_interface_layer3.c +++ b/openbsc/src/vty_interface_layer3.c @@ -230,9 +230,11 @@ DEFUN(subscriber_send_sms, struct buffer *b; int rc; - if (!subscr) + if (!subscr) { + vty_out(vty, "%% No subscriber found for %s %s%s", + argv[0], argv[1], VTY_NEWLINE); return CMD_WARNING; - + } b = argv_to_buffer(argc, argv, 2); rc = _send_sms_buffer(subscr, b, 0); buffer_free(b); @@ -251,8 +253,11 @@ DEFUN(subscriber_silent_sms, struct buffer *b; int rc; - if (!subscr) + if (!subscr) { + vty_out(vty, "%% No subscriber found for %s %s%s", + argv[0], argv[1], VTY_NEWLINE); return CMD_WARNING; + } b = argv_to_buffer(argc, argv, 2); rc = _send_sms_buffer(subscr, b, 64); @@ -273,7 +278,7 @@ DEFUN(subscriber_silent_call, if (!subscr) { vty_out(vty, "%% No subscriber found for %s %s%s", - argv[0], argv[1]); + argv[0], argv[1], VTY_NEWLINE); return CMD_WARNING; } |