Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ThingsJSON.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class TJSContainer : Codable {
let todo = try container.decode(TJSTodo.self)
self = .todo(todo)
}
catch TJSError.invalidType(_) {
catch TJSError.invalidType(_, _) {
// If it's the wrong type, try a project
let project = try container.decode(TJSProject.self)
self = .project(project)
Expand Down Expand Up @@ -486,7 +486,7 @@ public class TJSProject : TJSModelItem, Codable {
let todo = try container.decode(TJSTodo.self)
self = .todo(todo)
}
catch TJSError.invalidType(_) {
catch TJSError.invalidType(_, _) {
// If it's the wrong type, try a heading
let heading = try container.decode(TJSHeading.self)
self = .heading(heading)
Expand Down