Changeset 87bd3acad6887327c872e2d7acdb1332fe5d471e

Show
Ignore:
Timestamp:
06/29/12 17:24:53 (2 years 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
  • src/modules-lua/noit/module/http.lua

    rf291bb5 r87bd3ac  
    395395        local rv, err = client:connect(check.target_ip, port, use_ssl) 
    396396        if rv ~= 0 then 
    397             check.status(str or "unknown error") 
     397            check.status(err or "unknown error") 
    398398            return 
    399399        end