Some files may have sintax errors, since the vendor directory may not be under your control, it should better to catch Throwable instead of Exception, to allow to cache the rest of the files.
I also added the uncompiled list of files with errors to the output, to show the list of files that weren't cached.
This is a great addition to avoid the large number of errors some users get and eliminates the need to add files to exclude by simply ignoring the ones that cause problems. Too bad the project seems abandoned.
Some files may have sintax errors, since the vendor directory may not be under your control, it should better to catch Throwable instead of Exception, to allow to cache the rest of the files.
I also added the uncompiled list of files with errors to the output, to show the list of files that weren't cached.