Merge pull request #22840 from braders/prefered-language-undefined-variable
[civicrm-core.git] / Civi / Core / AssetBuilder.php
index e3a7eb14734111d86d3ef879627ef254b00cf7ed..a67569364debdeeb9d3142d667f46911db5fa458 100644 (file)
@@ -195,7 +195,7 @@ class AssetBuilder {
       }
       catch (UnknownAssetException $e) {
         // unexpected error, log and continue
-        Civi::log()->error('Unexpected error while rendering a file in the AssetBuilder');
+        \Civi::log()->error('Unexpected error while rendering a file in the AssetBuilder: ' . $e->getMessage(), ['exception' => $e]);
       }
     }
     return $fileName;
@@ -241,7 +241,7 @@ class AssetBuilder {
   /**
    * Determine the local path of a cache file.
    *
-   * @param string|NULL $fileName
+   * @param string|null $fileName
    *   Ex: 'angular.abcd1234abcd1234.json'.
    * @return string
    *   URL.
@@ -257,7 +257,7 @@ class AssetBuilder {
   /**
    * Determine the URL of a cache file.
    *
-   * @param string|NULL $fileName
+   * @param string|null $fileName
    *   Ex: 'angular.abcd1234abcd1234.json'.
    * @return string
    *   URL.