Skip to content

Commit

Permalink
Use NSLog
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelhanneken committed Dec 22, 2016
1 parent e9cc957 commit 32861db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Iconizer/Controller/MainWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ class MainWindowController: NSWindowController, NSWindowDelegate {
NSWorkspace.shared().open(url.appendingPathComponent("Iconizer Assets", isDirectory: true))
} catch {
// Something went somewhere terribly wrong...
print(error)
if let error = error as? String {
NSLog(error)
}
return
}
}
Expand Down Expand Up @@ -139,7 +141,9 @@ class MainWindowController: NSWindowController, NSWindowDelegate {
// Open the selected image file.
try currentView.openSelectedImage(NSImage(contentsOf: url))
} catch {
print(error)
if let error = error as? String {
NSLog(error)
}
return
}
}
Expand Down

0 comments on commit 32861db

Please sign in to comment.