From 32b6e018c9c13747d6301ee21d108dbd34124714 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 12 Aug 2018 16:42:50 -0700 Subject: [PATCH] ircd::fs: Show path in rethrown errmsg. --- ircd/fs.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ircd/fs.cc b/ircd/fs.cc index 23f4d2e6c..0ea5e047c 100644 --- a/ircd/fs.cc +++ b/ircd/fs.cc @@ -536,7 +536,7 @@ catch(const filesystem::filesystem_error &e) { throw filesystem_error { - "%s", e.what() + "`%s': %s", path, e.what() }; } @@ -550,7 +550,7 @@ catch(const filesystem::filesystem_error &e) { throw filesystem_error { - "%s", e.what() + "`%s': %s", path, e.what() }; } @@ -564,7 +564,7 @@ catch(const filesystem::filesystem_error &e) { throw filesystem_error { - "%s", e.what() + "`%s': %s", path, e.what() }; } @@ -587,7 +587,7 @@ catch(const filesystem::filesystem_error &e) { throw filesystem_error { - "%s", e.what() + "`%s' -> `%s': %s", old, new_, e.what() }; }