From b77fb8acb57fee1b6decab818f0893832b4cf440 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 14 Nov 2016 13:37:16 +0100 Subject: Don't rely on %m --- src/libstore/optimise-store.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libstore/optimise-store.cc b/src/libstore/optimise-store.cc index 2fd9a9bb8..454c8b49d 100644 --- a/src/libstore/optimise-store.cc +++ b/src/libstore/optimise-store.cc @@ -5,6 +5,7 @@ #include "globals.hh" #include +#include #include #include #include @@ -160,7 +161,7 @@ void LocalStore::optimisePath_(OptimiseStats & stats, const Path & path, InodeHa full. When that happens, it's fine to ignore it: we just effectively disable deduplication of this file. */ - printInfo("cannot link ‘%s’ to ‘%s’: %m", linkPath, path); + printInfo("cannot link ‘%s’ to ‘%s’: %s", linkPath, path, strerror(errno)); return; default: -- cgit v1.2.3