when decode error,print the data and reason to stderr.