make shorter message in error pages