core: More informative error if plugin.json parsing fails
Merge pull request #2694 from tmatilai/plugin-json-errors

core: show more informative error if plugin.json parsing fails