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

- old
+ new

@@ -74,10 +74,16 @@ 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.') + + if pr_response.message.match(/looks the same/) + File.write(file_path, 'ERROR: Nothing to submit') + else + File.write(file_path, 'Done.') + end + exit end end end end