mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-24 22:33:52 +03:00
GH-232 Use NSError's description for the alert
This commit is contained in:
parent
8f4b1671d5
commit
8a171528ed
@ -159,9 +159,8 @@ extension GeneralPrefPane {
|
||||
|
||||
do {
|
||||
try NSFileManager.defaultManager().copyItemAtURL(vimrUrl, toURL: targetUrl)
|
||||
} catch {
|
||||
let pathInfo = targetUrl.path == nil ? "." : " to '\(targetUrl.path!)'."
|
||||
self.alert(title: "Error copying 'vimr'", info: "The CLI tool 'vimr' could not be copied\(pathInfo)")
|
||||
} catch let err as NSError {
|
||||
self.alert(title: "Error copying 'vimr'", info: err.localizedDescription)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user