I think this regexp is wrong, should it be `(rpc failed|shallow|--depth)`? Perhaps also escape `-` with `\-` just be sure?