fixing formatting issue for error strings on embedded attrs