Just identified an issue in realname module, but it was very difficult to identify the root cause. I only received this unhelpful exception. But there was no reference to what is wrong and after some debugging I found it could be every composer.json in my folder and all the many subfolders.
> Drupal\composer_manager\Composer\Command::update
Script Drupal\composer_manager\Composer\Command::update handling the drupal-update event terminated with an exception
[UnexpectedValueException]
Could not decode JSON: Syntax error
I added some print_r() to src/JSONFile.php to find the root cause and found it than.
I will attach a patch to improve logging output.
Comments
Comment #2
hass commentedThis patch improves the error message and is fully tested. Example output:
Testing the issue is quite simple. Just open a composer.json of any module that has "require" and remove the doubles quotes from the project "drupal/token".
Comment #4
bojanz commentedCommitted, thanks.
Comment #5
hass commentedAs you deprecated the 8.x - should this backported?