diff --git a/src/DeepFace.php b/src/DeepFace.php index b1998e6..8c8fa2d 100644 --- a/src/DeepFace.php +++ b/src/DeepFace.php @@ -343,7 +343,7 @@ protected function run(string $filepath, array $data): array|bool $errorResult = json_decode($lastJson, true); if ($errorResult !== null && isset($errorResult['error'])) { - throw new DeepFaceException($errorResult['error']); // should return 'Spoof detected in the given image' + throw new DeepFaceException($errorResult['error']); } else { throw new DeepFaceException("Failed to parse error message: " . $lastJson); }