Add debug information for inventory errors