From 6df8bbdb3fc417de28a0b386590b2a1860d6472a Mon Sep 17 00:00:00 2001 From: wuestholz Date: Tue, 18 Jun 2013 11:21:49 -0700 Subject: Did some refactoring of the error reporting functionality. --- Source/DafnyExtension/ProgressMargin.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/DafnyExtension/ProgressMargin.cs') diff --git a/Source/DafnyExtension/ProgressMargin.cs b/Source/DafnyExtension/ProgressMargin.cs index da1f2084..81ae9935 100644 --- a/Source/DafnyExtension/ProgressMargin.cs +++ b/Source/DafnyExtension/ProgressMargin.cs @@ -305,21 +305,21 @@ namespace DafnyLanguage if (errorInfo.RequestId != null && RequestIdToSnapshot.ContainsKey(errorInfo.RequestId)) { var s = RequestIdToSnapshot[errorInfo.RequestId]; - newErrors.Add(new DafnyError(errorInfo.Tok.line - 1, errorInfo.Tok.col - 1, ErrorCategory.VerificationError, errorInfo.Msg, s)); + newErrors.Add(new DafnyError(errorInfo.Tok.line - 1, errorInfo.Tok.col - 1, ErrorCategory.VerificationError, errorInfo.FullMsg, s)); foreach (var aux in errorInfo.Aux) { - newErrors.Add(new DafnyError(aux.Tok.line - 1, aux.Tok.col - 1, ErrorCategory.AuxInformation, aux.Msg, s)); + newErrors.Add(new DafnyError(aux.Tok.line - 1, aux.Tok.col - 1, ErrorCategory.AuxInformation, aux.FullMsg, s)); } } }); if (!success) { - newErrors.Add(new DafnyError(0, 0, ErrorCategory.InternalError, "verification process error", snapshot)); + newErrors.Add(new DafnyError(0, 0, ErrorCategory.InternalError, "Verification process error", snapshot)); } } catch (Exception e) { - newErrors.Add(new DafnyError(0, 0, ErrorCategory.InternalError, "verification process error: " + e.Message, snapshot)); + newErrors.Add(new DafnyError(0, 0, ErrorCategory.InternalError, "Verification process error: " + e.Message, snapshot)); } errorListHolder.VerificationErrors = newErrors; -- cgit v1.2.3