lib/learn_submit/submission.rb in learn-submit-1.0.6 vs lib/learn_submit/submission.rb in learn-submit-1.0.7

- old
+ new

@@ -58,10 +58,11 @@ if retries > 0 puts "It seems like there's a problem connecting to Learn. Trying again..." submit!(retries-1) else puts "Sorry, there's a problem reaching Learn right now. Please try again." + File.write(file_path, 'ERROR: Error connecting to learn.') exit end end case pr_response.status @@ -69,9 +70,10 @@ puts "Done." File.write(file_path, 'Done.') exit when 404 puts 'Sorry, it seems like there was a problem connecting with Learn. Please try again.' + File.write(file_path, 'ERROR: Error connecting to learn.') exit else puts pr_response.message File.write(file_path, 'Done.') exit