Add a :warning handler for db_import.
git-svn-id: file:///home/svn/framework3/trunk@12379 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
07fb337ad9
commit
93a07df541
|
@ -1231,6 +1231,8 @@ class Db
|
||||||
print_status("Import: #{data} packets processed")
|
print_status("Import: #{data} packets processed")
|
||||||
when :record_count
|
when :record_count
|
||||||
print_status("Import: #{data[1]} records processed")
|
print_status("Import: #{data[1]} records processed")
|
||||||
|
when :warning
|
||||||
|
print_status("Import Warning: #{data}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
print_status("Successfully imported #{filename}")
|
print_status("Successfully imported #{filename}")
|
||||||
|
|
Loading…
Reference in New Issue