Add coloring and hg error processing