1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-25 06:43:24 +03:00

GH-232 Use NSError's description for the alert

This commit is contained in:
Tae Won Ha 2016-08-25 09:53:28 +02:00
parent 8f4b1671d5
commit 8a171528ed
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -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)
}
}
}