mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Check for repository, log error (temp)
This commit is contained in:
@@ -29,7 +29,7 @@ class Package
|
||||
unless metadata?._id
|
||||
normalizePackageData ?= require 'normalize-package-data'
|
||||
normalizePackageData(metadata)
|
||||
if metadata.repository.type is 'git'
|
||||
if metadata.repository?.type is 'git'
|
||||
metadata.repository.url = metadata.repository.url.replace(/^git\+/, '')
|
||||
metadata
|
||||
|
||||
@@ -43,6 +43,7 @@ class Package
|
||||
metadata = CSON.readFileSync(metadataPath)
|
||||
@normalizeMetadata(metadata)
|
||||
catch error
|
||||
console.log("Thew Error", metadata.name, error)
|
||||
throw error unless ignoreErrors
|
||||
|
||||
metadata ?= {}
|
||||
|
||||
Reference in New Issue
Block a user