From 91c83eda713e02dba9149956cca0c2905d1ac16c Mon Sep 17 00:00:00 2001 From: Sandro Date: Fri, 27 Oct 2023 01:00:13 +0200 Subject: [PATCH] Make error about tool version mismatch clearer --- lib/Service/BinExt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Service/BinExt.php b/lib/Service/BinExt.php index d863fe52..c1cc46fc 100644 --- a/lib/Service/BinExt.php +++ b/lib/Service/BinExt.php @@ -76,7 +76,7 @@ class BinExt $version = trim($out); $target = self::EXIFTOOL_VER; if (!version_compare($version, $target, '=')) { - throw new \Exception("version does not match {$version} <==> {$target}"); + throw new \Exception("exiftool version does not match: expected {$target} but found {$version}"); } // Test with actual file @@ -338,7 +338,7 @@ class BinExt $version = $json['version']; $target = self::GOVOD_VER; if (!version_compare($version, $target, '=')) { - throw new \Exception("version does not match {$version} <==> {$target}"); + throw new \Exception("govod version does not match: expected {$target} but found {$version}"); } return $version;