apps/btshell: Fix not reporting scan start error
Extended parameter cannot be invalid as this is verified by parsing
function so just print error in common exit path.
@@ -1310,11 +1310,14 @@ cmd_scan(int argc, char **argv)
&g_scan_opts);
break;
default:
- rc = -1;
- console_printf("invalid 'extended' parameter\n");
+ assert(0);
break;
}
+ if (rc != 0) {
+ console_printf("error scanning; rc=%d\n", rc);
+ }
+
return rc;
}
