Change empty content error to use format string