From ecfd8e73e4d0102ba01139f9b7ea1e97ce7b79d5 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Fri, 28 Aug 2009 09:26:31 -0700 Subject: [PATCH] acc error tweaks --- libacc/acc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libacc/acc.cpp b/libacc/acc.cpp index 0409c102b..535361c9b 100644 --- a/libacc/acc.cpp +++ b/libacc/acc.cpp @@ -3837,7 +3837,7 @@ class Compiler : public ErrorSink { void assertImpl(bool isTrue, int line) { if (!isTrue) { - LOGD("assertion failed at line %s:%d.", __FILE__, line); + LOGD("%d: assertion failed at line %s:%d.", mLineNumber, __FILE__, line); internalError(); } } @@ -5220,7 +5220,6 @@ class Compiler : public ErrorSink { String temp; decodeToken(temp, tok, true); error("Expected name. Got %s", temp.getUnwrapped()); - assert(false); reportFailure = true; } for(;;) {