                 includingPropertiesForKeys: nil,
                 options:NSDirectoryEnumerationOptions.SkipsHiddenFiles)
         }
-        catch {
+        catch let error {
+            Logger.error("Failed getting files in \(folderName): \(error)")
             return nil
         }
     }

            let attrs: NSDictionary? = try NSFileManager.defaultManager().attributesOfItemAtPath(filename)
            let length = attrs!.fileSize()
            if let fileHandle = NSFileHandle(forReadingAtPath: filename) {
                let data = fileHandle.readDataOfLength(BytesForSignature)
                var digest = [UInt8](count:Int(CC_SHA1_DIGEST_LENGTH), repeatedValue: 0)
                CC_SHA1(data.bytes, CC_LONG(data.length), &digest)


                    output.appendFormat("%02x", byte)
                }
                return output as String            }
        } catch let error {
            Logger.error("Failed getting signature for \(filename): \(error)")
            return nil
        }

