Fix extra case for ':' and allow to output useful debugging information.