Skip to content

Commit

Permalink
Merge pull request #11 from Ether-CLI/develop
Browse files Browse the repository at this point in the history
Fail Manifest Read when File Doesn't Exist
  • Loading branch information
calebkleveter authored May 11, 2018
2 parents 6e1369e + ab4b1db commit 579d2fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [0.4.3] 2018-05-11

### Fixed
- Fail manifest read if file doesn't exist instead of when it exists

## [0.4.2] 2018-05-05

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Sources/Manifest/Manifest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public final class Manifest: Codable {
guard let resolvedURL = URL(string: self.path!) else {
throw ManifestError(identifier: "badURL", reason: "Unable to create URL for package manifest file.")
}
if !fileManager.fileExists(atPath: self.path!) {
if fileManager.fileExists(atPath: self.path!) {
throw ManifestError(identifier: "badManifestPath", reason: "Bad path to package manifest. Make sure you are in the project root.")
}

Expand Down

0 comments on commit 579d2fd

Please sign in to comment.