dist/webduino-all.js
function(error, substitutions) {
		var text = error.text;
		if (substitutions) {
		  var field,start;
		  for (var i=0; i<substitutions.length; i++) {
			field = "{"+i+"}";
			start = text.indexOf(field);
			if(start > 0) {
				var part1 = text.substring(0,start);
				var part2 = text.substring(start+field.length);
				text = part1+substitutions[i]+part2;
			}
		  }
		}
		return text;
	}
function(error, substitutions) {
		var text = error.text;
		if (substitutions) {
		  var field,start;
		  for (var i=0; i<substitutions.length; i++) {
			field = "{"+i+"}";
			start = text.indexOf(field);
			if(start > 0) {
				var part1 = text.substring(0,start);
				var part2 = text.substring(start+field.length);
				text = part1+substitutions[i]+part2;
			}
		  }
		}
		return text;
	}
function ( error , substitutions ) { var text = error . text ; if ( substitutions ) { var field , start ; for ( var i = 0 ; i < substitutions . length ; i ++ ) { field = "{" + i + "}" ; start = text . indexOf ( field ) ; if ( start > 0 ) { var part1 = text . substring ( 0 , start ) ; var part2 = text . substring ( start + field . length ) ; text = part1 + substitutions [ i ] + part2 ; } } } return text ; }
Format an error message text.
@private
@param {error} ERROR.KEY value above.
@param {substitutions} [array] substituted into the text.
@return the text with the substitutions made.
Format an error message text .