improve completion error reporting