Improved debug when command fails