Yes, it might fail, when there are some errors in manifest.json. So you should check here, and echo the error message is better.