diff --git a/src/source-pcap-file-helper.c b/src/source-pcap-file-helper.c index de78fc45f1f2..8853080e9175 100644 --- a/src/source-pcap-file-helper.c +++ b/src/source-pcap-file-helper.c @@ -47,7 +47,7 @@ void CleanupPcapFileFileVars(PcapFileFileVars *pfv) if (pfv->shared != NULL && pfv->shared->should_delete) { SCLogDebug("Deleting pcap file %s", pfv->filename); if (unlink(pfv->filename) != 0) { - SCLogWarning("Failed to delete %s", pfv->filename); + SCLogWarning("Failed to delete %s: %s", pfv->filename, strerror(errno)); } } SCFree(pfv->filename);