From 33be6a0fd3d2be6fb4367e5d2df5fd81282ee779 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Wed, 30 Jun 2021 12:01:05 +0100
Subject: [PATCH] identify-library-abi: Improve diagnostic message

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 bin/identify-library-abi.c       | 2 +-
 tests/identify-library-abi-cli.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/identify-library-abi.c b/bin/identify-library-abi.c
index 648299714..136c0bb26 100644
--- a/bin/identify-library-abi.c
+++ b/bin/identify-library-abi.c
@@ -224,7 +224,7 @@ run (int argc,
       real_directory = realpath (opt_directory, NULL);
 
       if (real_directory == NULL)
-        return glnx_throw_errno_prefix (error, "Unable to realpath \"%s\"", opt_directory);
+        return glnx_throw_errno_prefix (error, "Unable to find real path of \"%s\"", opt_directory);
 
       if (nftw (real_directory, list_libraries_helper, 10, FTW_DEPTH|FTW_PHYS) < 0)
         {
diff --git a/tests/identify-library-abi-cli.c b/tests/identify-library-abi-cli.c
index 05bd126d9..17d18db3f 100644
--- a/tests/identify-library-abi-cli.c
+++ b/tests/identify-library-abi-cli.c
@@ -212,7 +212,7 @@ test_arguments_validation (Fixture *f,
         NULL,
       },
       .exit_status = 1,
-      .stderr_contains = "Unable to realpath",
+      .stderr_contains = "Unable to find real path",
     },
   };
 
-- 
GitLab