Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

alert_unixsock: Improve some error messages so it's clear which modul…

…e they came from.
  • Loading branch information...
commit de341c473f453f4d95c338254a1e02d3b508811f 1 parent 55bad05
Martijn van Oosterhout authored committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/output-plugins/spo_alert_unixsock.c
View
6 src/output-plugins/spo_alert_unixsock.c
@@ -327,7 +327,7 @@ void OpenAlertSock(SpoAlertUnixSockData *data)
if(access(data->filename, W_OK))
{
- ErrorMessage("%s file doesn't exist or isn't writable!\n",
+ ErrorMessage("alert_unixsock: %s file doesn't exist or isn't writable!\n",
data->filename);
}
@@ -340,13 +340,13 @@ void OpenAlertSock(SpoAlertUnixSockData *data)
if((data->alertsd = socket(AF_UNIX, data->sync?SOCK_STREAM:SOCK_DGRAM, 0)) < 0)
{
- FatalError("socket() call failed: %s", strerror(errno));
+ FatalError("alert_unixsock: socket() call failed: %s\n", strerror(errno));
}
/* Connect to the target */
if( connect(data->alertsd, (struct sockaddr *)&alertaddr, sizeof(alertaddr)) < 0)
{
- FatalError("connect() to '%s' failed: %s", data->filename, strerror(errno));
+ FatalError("alert_unixsock: connect() to '%s' failed: %s\n", data->filename, strerror(errno));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.