comparison src/luan/cmd_line.luan @ 1175:d6d0bd05ad8c

exit on bind conflict, serve "127.0.0.1" for serve_for_nginx
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 12 Feb 2018 14:55:28 -0700
parents 1a68fc55a80c
children 5ba660381bd5
comparison
equal deleted inserted replaced
1174:bdf27aa2a65c 1175:d6d0bd05ad8c
20 end 20 end
21 try { 21 try {
22 function() 22 function()
23 local main_file = load_file(file) 23 local main_file = load_file(file)
24 print( main_file( Table.unpack(Luan.arg) ) ) 24 print( main_file( Table.unpack(Luan.arg) ) )
25 end; 25 end
26 catch = function(e) 26 catch = function(e)
27 -- java(); e.java.printStackTrace(); 27 -- java(); e.java.printStackTrace();
28 Io.print_to(Io.stderr, e ) 28 Io.print_to(Io.stderr, e )
29 end; 29 end
30 } 30 }
31 end 31 end