slothdude,
@slothdude@mastodon.online avatar

I ran into a weird issue today. I am organising our codebase to use local packages for various things. I have an error enum defined in a local package. There is a class in the main application target that throws the error. But when I try to check that the error is correctly thrown in a unit test, the catch doesn’t capture it. Trying to print the type and value with the help of type(of:) does give the correct looking result. I even tried with the full type including the module name.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • swift
  • DreamBathrooms
  • InstantRegret
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • modclub
  • Youngstown
  • ngwrru68w68
  • slotface
  • osvaldo12
  • kavyap
  • mdbf
  • thenastyranch
  • JUstTest
  • everett
  • cubers
  • cisconetworking
  • normalnudes
  • Durango
  • anitta
  • khanakhh
  • tacticalgear
  • tester
  • provamag3
  • megavids
  • Leos
  • lostlight
  • All magazines