Add a custom function for displaying flycheck errors