changeset 477:30c7871a4a9e

Provide even more details in case of failed fcntl. (bitbucket: issue #4)
author Lewin Bormann <lbo@spheniscida.de>
date Thu, 11 Jul 2019 17:22:40 +0200
parents 7131b39ef70e
children 591a2285c83c
files src/disk_env.rs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/disk_env.rs	Wed Jul 10 22:03:07 2019 +0200
+++ b/src/disk_env.rs	Thu Jul 11 17:22:40 2019 +0200
@@ -147,7 +147,7 @@
             if result < 0 {
                 return Err(Status::new(
                     StatusCode::Errno(errno::errno()),
-                    "Lock is held (fcntl)",
+                    &format!("fcntl error on fd {} (file {})", fd, p.display()),
                 ));
             }