Ticket #3697: 3697_cklangtool.patch
File 3697_cklangtool.patch, 1.1 KB (added by , 14 years ago) |
---|
-
_source/includes/cklangtool.js
44 44 45 45 var cx = Context.enter(), scope = cx.initStandardObjects(); 46 46 47 cx.evaluateString( scope, translationCode, file.getName(), 1, null );48 49 47 try 50 48 { 49 cx.evaluateString( scope, translationCode, file.getName(), 1, null ); 50 51 51 var languageCode = ''; 52 52 53 53 /* … … 88 88 } 89 89 catch ( e ) 90 90 { 91 throw ( "Language file is invalid (" + file.getAbsolutePath() + ")");91 throw ( "Language file is invalid: " + file.getAbsolutePath() + ".\nError: " + e.message); 92 92 } 93 93 }; 94 94 -
_source/langtool.js
90 90 91 91 function error( msg ) 92 92 { 93 print( msg ); 94 print( '' ); 93 System.err.println( msg ); 95 94 quit(); 96 95 } 97 96 … … 112 111 } 113 112 catch ( e ) 114 113 { 115 print( "" );116 114 error( e ); 117 115 } 118 116 } )();