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.
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.