diff --git a/tools/oneclick/base/modelsim_regression_test_vhdl_mail.sh b/tools/oneclick/base/modelsim_regression_test_vhdl_mail.sh
index 22147032ca1a0f3fc02f3330a5631c91a37d258b..1f400c13c0a90bb8c79706757e572afc03247402 100755
--- a/tools/oneclick/base/modelsim_regression_test_vhdl_mail.sh
+++ b/tools/oneclick/base/modelsim_regression_test_vhdl_mail.sh
@@ -54,7 +54,7 @@ SUBJECT=[REGTEST]${SUBJECT_FULL##*SUBJECT:}
 SUBJECT=$SUBJECT" - SVN revision ${SVN_REV}" 
 
 # Grep non-duplicate error messages from the log file
-LOG=$(cat $LOGFILE | grep Error | sort | uniq)
+LOG=$(cat $LOGFILE | grep Error -B 50)
 
 ###############################################################################
 # Send the email by piping the final strings to the mail command