Skip to content

Throwing non-existing error #1

@mokrinsky

Description

@mokrinsky

Hello! First of all, thanks for this script!

I found a little mistake on 117th line. Here you're trying to return an error from $e variable which is not caught yet.

try{
$responce = curl_exec($ch);
if(curl_error($ch) != "") {
returnNagios("UNKNOWN", $e->getMessage());
}
} catch(Exception $e) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions