Avoid calling ANY.print, prefer io.error.put_string
Fixed obsolete calls.
This commit is contained in:
@@ -88,8 +88,12 @@ feature -- Execution
|
||||
conn.configuration.set_is_verbose (verbose)
|
||||
debug ("nino")
|
||||
if verbose then
|
||||
print ("Example: start a Nino web server on port " + port_number.out +
|
||||
", %Nand reply Hello World for any request such as http://localhost:" + port_number.out + "/" + base_url + "%N")
|
||||
io.error.put_string ("Launching Nino web server on port " + port_number.out)
|
||||
if attached server_name as l_name then
|
||||
io.error.put_string ("%N http://" + l_name + ":" + port_number.out + "/" + base_url + "%N")
|
||||
else
|
||||
io.error.put_string ("%N http://localhost:" + port_number.out + "/" + base_url + "%N")
|
||||
end
|
||||
end
|
||||
end
|
||||
if attached server_name as l_server_name then
|
||||
|
||||
@@ -22,10 +22,10 @@ feature {NONE} -- Initialization
|
||||
default_create
|
||||
do
|
||||
Precursor
|
||||
create on_router_actions.make
|
||||
create on_item_actions.make
|
||||
create on_mapping_actions.make
|
||||
create on_handler_actions.make
|
||||
create on_router_actions
|
||||
create on_item_actions
|
||||
create on_mapping_actions
|
||||
create on_handler_actions
|
||||
end
|
||||
|
||||
feature -- Actions
|
||||
|
||||
@@ -151,7 +151,7 @@ feature {NONE} -- Storage
|
||||
build
|
||||
end
|
||||
rescue
|
||||
print ("ouch")
|
||||
io.error.put_string ("Error while loading Cookie session...!%N")
|
||||
end
|
||||
|
||||
build
|
||||
|
||||
@@ -52,7 +52,7 @@ feature -- Access
|
||||
end
|
||||
rescue
|
||||
debug
|
||||
print ("Error occurred in " + generator)
|
||||
io.error.put_string ("Error occurred in " + generator)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user