From a81a25c4202a7f1c79cd1b36c7fdc02d992caa64 Mon Sep 17 00:00:00 2001
From: Bradley M. Froehle <bfroehle@math.berkeley.edu>
Date: Mon, 15 Nov 2010 01:16:22 -0800
Subject: [PATCH] 951172: Add new error to distinguish between being unable to find or parse a .info file

---
 includes/updater.inc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git includes/updater.inc includes/updater.inc
index d86040c..aedf23c 100644
--- includes/updater.inc
+++ includes/updater.inc
@@ -178,6 +178,9 @@ class Updater {
    */
   public static function getProjectTitle($directory) {
     $info_file = self::findInfoFile($directory);
+    if (!info_file) {
+      throw new UpdaterException(t('Unable to find info file.'));
+    }
     $info = drupal_parse_info_file($info_file);
     if (!$info) {
       throw new UpdaterException(t('Unable to parse info file.'));
-- 
1.7.3.1

