Skip to content

Commit

Permalink
fix: manifest.jsonの取得に失敗したときにロギングできていない問題の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
uidev1116 committed Sep 5, 2024
1 parent 0e265c6 commit 0a01eed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Vite.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,14 @@ private function getManifest(): ?array
throw new ManifestNotFoundException('Manifest file not found.');
}
} catch (\Exception $e) {
if (class_exists('Logger')) {
if (class_exists('AcmsLogger')) {
Logger::error('【Vite plugin】manifest.json を取得できませんでした。', Common::exceptionArray($e));
}
return null;
}
$decodedManifest = json_decode($manifest, true);
if (!is_array($decodedManifest)) {
if (class_exists('Logger')) {
if (class_exists('AcmsLogger')) {
Logger::error('【Vite plugin】manifest.json のデコードに失敗しました。');
}
return null;
Expand Down

0 comments on commit 0a01eed

Please sign in to comment.