capstan: check "capstan info" return value

check the return value for "capstan info" and print the error message if exists

Signed-off-by: wangbicheng <wangbicheng@huawei.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>