Entity template: Return error message instead of silently failing.