Neither a departure from the form or mode prescribed in this chapter in respect to any pleadings or proceedings, nor an error or mistake therein, renders it invalid, unless it has actually prejudiced the defendant or tended to his prejudice, in respect to a substantial right.
R.L.1910, § 6126.