refactor logging functions

This commit is contained in:
John Rommel Estropia
2015-02-28 11:32:41 +09:00
parent 59cd505dc6
commit 55dee6ec2f
11 changed files with 151 additions and 118 deletions

View File

@@ -94,7 +94,7 @@ internal extension NSManagedObjectContext {
HardcoreData.handleError(
error,
"Failed to save NSManagedObjectContext.")
"Failed to save \(NSManagedObjectContext.self).")
result = SaveResult(error)
}
else {
@@ -153,7 +153,7 @@ internal extension NSManagedObjectContext {
HardcoreData.handleError(
error,
"Failed to save NSManagedObjectContext.")
"Failed to save \(NSManagedObjectContext.self).")
if let completion = completion {
GCDQueue.Main.async {