$errorMsg #if $getVar('errorDetails', None)
${errorDetails, entityEncoding='skip'} #end if