From: "Jan E." Date: 2012-10-08T23:37:24+09:00 Subject: Re: What is the error: unexpected break? ajay paswan wrote in post #1078949: > As this is a big program, and I don't know exactly at which line am > getting the error, so can't post the whole code, is there any way to > find exactly at which line this error has occured/occurring? The error message should say that (along with the file name). For example, when I put a "break" on the top level, I get the message (some path)/main.rb:11: Invalid break (some path)/main.rb: compile error (SyntaxError) So the error is on line 11 of main.rb -- Posted via http://www.ruby-forum.com/.