Fixed multiple cases in which a non-constact string variable was used as a format string for fmt.Errorf.