diff --git a/scripts/phutil_rebuild_map.php b/scripts/phutil_rebuild_map.php index 53d5ee1a..feec1e24 100755 --- a/scripts/phutil_rebuild_map.php +++ b/scripts/phutil_rebuild_map.php @@ -407,7 +407,11 @@ final class PhutilLibraryMapBuilder { } $json = json_encode($cache); - Filesystem::writeFile($cache_file, $json); + try { + Filesystem::writeFile($cache_file, $json); + } catch (FilesystemException $ex) { + $this->log("Unable to save the cache!\n"); + } }