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:
parent
ea90628828
commit
344c42f9da
@ -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" }
|
||||
|
Loading…
Reference in New Issue
Block a user