ITV / scala-pact

A Scala implementation of CDC using the Pact standard
Other
108 stars 54 forks source link

Log error on failure to parse local pact files #221

Closed caoilte closed 2 years ago

caoilte commented 3 years ago

I got confused trying to figure out why one of my locally edited pact files didn't run. It had a dangling comma but because scala-pact currently silently drops invalid json files it took me a while to figure it out.

Providing enough context to log useful information required refactoring the json parsing into the file loading.

I've made the change as two commits, because the reformatting from scalafmt makes it hard to see what I changed.

caoilte commented 2 years ago

switched to pact4s.