[seed] Use fully qualified paths when sending to Evaluate script, so error messages are clearer



commit c652bb73c3e28cfdfb8494bbdde5d90a927bc5f8
Author: Alan Knowles <alan alanfast akbkhome com>
Date:   Tue Mar 9 17:15:36 2010 +0800

    Use fully qualified paths when sending to Evaluate script, so error messages are clearer
    
    If you have two files called Abc.js in two different directories, the error message for syntax error (and others)
    does not distinguish between them. The fix is to send the fully qualified path to the method.

 libseed/seed-importer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libseed/seed-importer.c b/libseed/seed-importer.c
index 1f51838..f3b7317 100644
--- a/libseed/seed-importer.c
+++ b/libseed/seed-importer.c
@@ -674,7 +674,7 @@ seed_importer_handle_file (JSContextRef ctx,
   g_free (contents);
 
   file_contents = JSStringCreateWithUTF8CString (walk);
-  file_name = JSStringCreateWithUTF8CString (file);
+  file_name = JSStringCreateWithUTF8CString (canonical);
 
   nctx = JSGlobalContextCreateInGroup (context_group, 0);
   seed_prepare_global_context (nctx);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]