Skip to content

Commit

Permalink
Drop dependency on Foundation, this produces a confusing error otherwise
Browse files Browse the repository at this point in the history
  • Loading branch information
migueldeicaza committed Nov 20, 2024
1 parent 931248c commit 8c6e69f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Sources/SwiftGodotMacroLibrary/MacroCallable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public struct GodotCallable: PeerMacro {
GD.printErr(error.description)
return nil
} catch {
GD.printErr("Error calling `\(funcName)`: \\(error.localizedDescription)")
GD.printErr("Error calling `\(funcName)`: \\(error)")
return nil
}
}
Expand Down
22 changes: 11 additions & 11 deletions Tests/SwiftGodotMacrosTests/MacroGodotTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ final class MacroGodotTests: MacroGodotTestCase {
GD.printErr(error.description)
return nil
} catch {
GD.printErr("Error calling `subscribe`: \\(error.localizedDescription)")
GD.printErr("Error calling `subscribe`: \\(error)")
return nil
}
}
Expand All @@ -228,7 +228,7 @@ final class MacroGodotTests: MacroGodotTestCase {
GD.printErr(error.description)
return nil
} catch {
GD.printErr("Error calling `removeSilences`: \\(error.localizedDescription)")
GD.printErr("Error calling `removeSilences`: \\(error)")
return nil
}
}
Expand All @@ -244,7 +244,7 @@ final class MacroGodotTests: MacroGodotTestCase {
GD.printErr(error.description)
return nil
} catch {
GD.printErr("Error calling `getLatestEpisode`: \\(error.localizedDescription)")
GD.printErr("Error calling `getLatestEpisode`: \\(error)")
return nil
}
}
Expand All @@ -260,7 +260,7 @@ final class MacroGodotTests: MacroGodotTestCase {
GD.printErr(error.description)
return nil
} catch {
GD.printErr("Error calling `queue`: \\(error.localizedDescription)")
GD.printErr("Error calling `queue`: \\(error)")
return nil
}
}
Expand Down Expand Up @@ -453,7 +453,7 @@ final class MacroGodotTests: MacroGodotTestCase {
GD.printErr(error.description)
return nil
} catch {
GD.printErr("Error calling `square`: \\(error.localizedDescription)")
GD.printErr("Error calling `square`: \\(error)")
return nil
}
}
Expand Down Expand Up @@ -549,7 +549,7 @@ final class MacroGodotTests: MacroGodotTestCase {
GD.printErr(error.description)
return nil
} catch {
GD.printErr("Error calling `printNames`: \\(error.localizedDescription)")
GD.printErr("Error calling `printNames`: \\(error)")
return nil
}
}
Expand Down Expand Up @@ -602,7 +602,7 @@ final class MacroGodotTests: MacroGodotTestCase {
GD.printErr(error.description)
return nil
} catch {
GD.printErr("Error calling `multiply`: \\(error.localizedDescription)")
GD.printErr("Error calling `multiply`: \\(error)")
return nil
}
}
Expand Down Expand Up @@ -721,7 +721,7 @@ final class MacroGodotTests: MacroGodotTestCase {
GD.printErr(error.description)
return nil
} catch {
GD.printErr("Error calling `multiply`: \\(error.localizedDescription)")
GD.printErr("Error calling `multiply`: \\(error)")
return nil
}
}
Expand Down Expand Up @@ -836,7 +836,7 @@ final class MacroGodotTests: MacroGodotTestCase {
GD.printErr(error.description)
return nil
} catch {
GD.printErr("Error calling `multiply`: \\(error.localizedDescription)")
GD.printErr("Error calling `multiply`: \\(error)")
return nil
}
}
Expand All @@ -853,7 +853,7 @@ final class MacroGodotTests: MacroGodotTestCase {
GD.printErr(error.description)
return nil
} catch {
GD.printErr("Error calling `divide`: \\(error.localizedDescription)")
GD.printErr("Error calling `divide`: \\(error)")
return nil
}
}
Expand All @@ -870,7 +870,7 @@ final class MacroGodotTests: MacroGodotTestCase {
GD.printErr(error.description)
return nil
} catch {
GD.printErr("Error calling `areBothTrue`: \\(error.localizedDescription)")
GD.printErr("Error calling `areBothTrue`: \\(error)")
return nil
}
}
Expand Down

0 comments on commit 8c6e69f

Please sign in to comment.