Raise an InvalidFileError when JSON parsing of a MachineDefinition fails
Raise an InvalidFileError when JSON parsing of a MachineDefinition fails

Instead of throwing a JSONDecodeError, this makes the error handling
simpler.

onitake/Uranium,onitake/Uranium