Commit 91947ab
committed
tq: verify connection and return error on nil
In some cases, we can end up with a panic due to a pure SSH transfer
lacking any connections, but it's not clear what those cases are. Let's
add some explicit checks that our connection is functional and return an
error if not.1 parent 70b3fed commit 91947ab
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
179 | 182 | | |
180 | 183 | | |
181 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
182 | 188 | | |
183 | 189 | | |
184 | 190 | | |
| |||
0 commit comments