Ticket #3697: 3697_cklangtool.patch

File 3697_cklangtool.patch, 1.1 KB (added by Wiktor Walc, 14 years ago)
  • _source/includes/cklangtool.js

     
    4444
    4545        var cx = Context.enter(), scope = cx.initStandardObjects();
    4646
    47         cx.evaluateString( scope, translationCode, file.getName(), 1, null );
    48 
    4947        try
    5048        {
     49                cx.evaluateString( scope, translationCode, file.getName(), 1, null );
     50
    5151                var languageCode = '';
    5252
    5353                /*
     
    8888        }
    8989        catch ( e )
    9090        {
    91                 throw ( "Language file is invalid (" + file.getAbsolutePath() + ")" );
     91                throw ( "Language file is invalid: " + file.getAbsolutePath() + ".\nError: " + e.message);
    9292        }
    9393};
    9494
  • _source/langtool.js

     
    9090
    9191function error( msg )
    9292{
    93         print( msg );
    94         print( '' );
     93        System.err.println( msg );
    9594        quit();
    9695}
    9796
     
    112111        }
    113112        catch ( e )
    114113        {
    115                 print( "" );
    116114                error( e );
    117115        }
    118116} )();
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy