use print_status and print_error instead of print_line where applicable in

connect's output for [*] and [-]


git-svn-id: file:///home/svn/framework3/trunk@6077 4d416f70-5f16-0410-b530-b9f4589650da
unstable
kris 2009-01-06 06:12:58 +00:00
parent fa950d64ef
commit f86ba09020
1 changed files with 4 additions and 4 deletions

View File

@ -229,7 +229,7 @@ class Core
raise "Not a file" if File.ftype(fileval) != "file"
infile = ::File.open(fileval)
rescue
print_line("Can't read from '#{fileval}': #{$!}")
print_error("Can't read from '#{fileval}': #{$!}")
return false
end
end
@ -257,7 +257,7 @@ class Core
end
if not comm
print_line("Invalid comm '#{commval}' selected")
print_error("Invalid comm '#{commval}' selected")
return false
end
end
@ -273,11 +273,11 @@ class Core
'Timeout' => cto
})
rescue
print_line("Unable to connect: #{$!}")
print_error("Unable to connect: #{$!}")
return false
end
print_line("Connected to #{host}:#{port}")
print_status("Connected to #{host}:#{port}")
cin = infile || driver.input
cout = driver.output