Open saristov opened 6 years ago
Thanks for the detailed ticket! I'm glad you were able to sort out your issue with a minimal change to the code. I think, in general, this is a pretty good proposed change, but I think we can redirect the error output to a color_coded.log
, perhaps. Are you up for making a PR with the above changes, except just printing the error output to a file?
From there, we'll just need to update the readme to mention the error log file. You could include that in the PR or I could do it.
I recently had an issue with my build environment, which lead to badly build color_coded.so library which failed to load. While the issue itself was more or less trivial to fix after the exact cause of the problem was found, the default plugin behavior was not friendly, all that was given was "color_coded unavailable: you need to compile it (see README.md)".
I suggest the pcall invocation to be changed to include the error message and the message printed on failure. I made "quick and dirty" local change, but I believe, it could be better. My changes are: