Merge pull request #888 from SuperSandro2000/patch-1

Make error about tool version mismatch clearer
pull/900/head
Varun Patil 2023-10-27 21:49:14 -07:00 committed by GitHub
commit be621309aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ class BinExt
$version = trim($out); $version = trim($out);
$target = self::EXIFTOOL_VER; $target = self::EXIFTOOL_VER;
if (!version_compare($version, $target, '=')) { 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 // Test with actual file
@ -338,7 +338,7 @@ class BinExt
$version = $json['version']; $version = $json['version'];
$target = self::GOVOD_VER; $target = self::GOVOD_VER;
if (!version_compare($version, $target, '=')) { 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; return $version;