Changeset 87bd3acad6887327c872e2d7acdb1332fe5d471e
- Timestamp:
- 06/29/12 17:24:53
(11 months ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1340990693 -0400
- git-parent:
[651988747506d25414e2375c0eb1b41f0ca3aaf9]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1340990693 -0400
- Message:
print the error if available instead of always printing 'unknown error'
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rf291bb5 |
r87bd3ac |
|
| 395 | 395 | local rv, err = client:connect(check.target_ip, port, use_ssl) |
|---|
| 396 | 396 | if rv ~= 0 then |
|---|
| 397 | | check.status(str or "unknown error") |
|---|
| | 397 | check.status(err or "unknown error") |
|---|
| 398 | 398 | return |
|---|
| 399 | 399 | end |
|---|