Avoid calling ANY.print, prefer io.error.put_string

Fixed obsolete calls.
This commit is contained in:
Jocelyn Fiat
2012-12-20 18:32:56 +01:00
parent d46fbeaedd
commit a362e7d9c6
6 changed files with 21 additions and 17 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -151,7 +151,7 @@ feature {NONE} -- Storage
build
end
rescue
print ("ouch")
io.error.put_string ("Error while loading Cookie session...!%N")
end
build

View File

@@ -52,7 +52,7 @@ feature -- Access
end
rescue
debug
print ("Error occurred in " + generator)
io.error.put_string ("Error occurred in " + generator)
end
end