lib/kpm/database.rb in kpm-0.8.1 vs lib/kpm/database.rb in kpm-0.8.2

- old
+ new

@@ -42,10 +42,14 @@ if response.include? 'ERROR' @logger.error "\e[91;1mTransaction that fails to be executed (first 1,000 chars)\e[0m" # Queries can be really big (bulk imports) @logger.error "\e[91m#{query[0..1000]}\e[0m" - raise Interrupt, "Importing table #{table_name}...... \e[91;1m#{response}\e[0m" + if response.include?('Table') && response.include?('doesn\'t exist') + @logger.warn "Skipping unknown table #{table_name}...." + else + raise Interrupt, "Importing table #{table_name}...... \e[91;1m#{response}\e[0m" + end end if response.include? 'LAST_INSERT_ID' @logger.info "\e[32mImporting table #{table_name}...... Row 1 of #{qty_to_insert} success\e[0m"