gscript r9 - in trunk: . gscript
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: gscript r9 - in trunk: . gscript
- Date: Tue, 16 Sep 2008 18:22:23 +0000 (UTC)
Author: alexl
Date: Tue Sep 16 18:22:23 2008
New Revision: 9
URL: http://svn.gnome.org/viewvc/gscript?rev=9&view=rev
Log:
2008-09-16 Alexander Larsson <alexl redhat com>
* gscript/gscriptengine.c (error_reporter):
Print line no on error
Modified:
trunk/ChangeLog
trunk/gscript/gscriptengine.c
Modified: trunk/gscript/gscriptengine.c
==============================================================================
--- trunk/gscript/gscriptengine.c (original)
+++ trunk/gscript/gscriptengine.c Tue Sep 16 18:22:23 2008
@@ -43,7 +43,7 @@
error_reporter (JSContext *cx, const char *message, JSErrorReport *report)
{
/* TODO: Better support for error reporting. Emit signal? */
- fprintf(stderr, "JS error: %s\n", message);
+ fprintf(stderr, "JS error: %s (at line %d)\n", message, report->lineno);
}
static JSBool
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]