Permalink
Browse files

Only show the error about the sqlite database being absent if the scr…

…aper finished succesfully
  • Loading branch information...
mlandauer committed Dec 5, 2017
1 parent f1963c2 commit 3af97b9d096ffe534fb26bbc0167094a636443b2
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/morph/runner.rb
View
@@ -143,7 +143,8 @@ def attach_to_run_and_finish(c, since)
if result.files && result.files['data.sqlite']
Morph::Runner.copy_sqlite_db_back(run.data_path, result.files['data.sqlite'])
result.files['data.sqlite'].close!
else
# Only show the error below if the scraper thinks it finished without problems
elsif status_code == 0
m = <<-EOF
Scraper didn't create an SQLite database in your current working directory called
data.sqlite. If you've just created your first scraper and not edited the code yet

0 comments on commit 3af97b9

Please sign in to comment.