1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Clarify a couple of error messages.

This commit is contained in:
Rob Rix 2015-10-29 15:59:34 -04:00
parent ea90628828
commit 344c42f9da

View File

@ -69,8 +69,8 @@ func termWithInput(language: TSLanguage)(_ string: String) -> Term? {
}
let arguments = BoundsCheckedArray(array: Process.arguments)
guard let aURL = arguments[1].map(NSURL.init) else { throw "need state A" }
guard let bURL = arguments[2].map(NSURL.init) else { throw "need state B" }
guard let aURL = arguments[1].map(NSURL.init) else { throw "need path for state A" }
guard let bURL = arguments[2].map(NSURL.init) else { throw "need path for state B" }
let aString = try NSString(contentsOfURL: aURL, encoding: NSUTF8StringEncoding) as String
let bString = try NSString(contentsOfURL: bURL, encoding: NSUTF8StringEncoding) as String
guard let jsonPath = arguments[3] else { throw "need json path" }