Diff between c9748778ac2932d86e10a89f269766e938c40961 and 037ea88d5e260b506307fccb99795dbbcffa3e6a
Changed Files
| File | Additions | Deletions | Status |
| plugins/autopair.c | +2 | -2 | modified |
Full Patch
diff --git a/plugins/autopair.c b/plugins/autopair.c
index d63da93..43b0e00 100644
--- a/plugins/autopair.c
+++ b/plugins/autopair.c
@@ -172,8 +172,8 @@ static int autopair_init(void)
n = read(fd, &seed, sizeof(seed));
if (n < (ssize_t) sizeof(seed)) {
err = (n == -1) ? -errno : -EIO;
- error("Failed to read %zu bytes from /dev/urandom",
- sizeof(seed));
+ error("Failed to read %zu bytes from /dev/urandom: %s (%d)",
+ sizeof(seed), strerror(-err), -err);
close(fd);
return err;
}