Added support to record error information on quick-fix invocation.

Related to issue karlitrotski/CodingSpectator/#39.
Programmed by @joffreyc85