(errors)
| 97 | } |
| 98 | |
| 99 | export function getErrorStrs(errors) { |
| 100 | if (errors) { |
| 101 | return errors.map((e) => { |
| 102 | if (e && e.message) { |
| 103 | return e.message; |
| 104 | } |
| 105 | return e; |
| 106 | }); |
| 107 | } |
| 108 | return errors; |
| 109 | } |
| 110 | |
| 111 | export function getParams(ns, opt, cb) { |
| 112 | let names = ns; |