Improves error logging for indexPath and whoamiPath