]> git.donarmstrong.com Git - lilypond.git/blobdiff - src/warn.cc
release: 0.0.33
[lilypond.git] / src / warn.cc
index a7d9ba18beae9ba3d77fe25fb760fb9669e4334b..63490de581077299168faf69b39d54a2bccf2f11 100644 (file)
@@ -40,7 +40,7 @@ error_t(const String& s, const Moment& r)
 void
 error_t(const String& s, Time_description const &t_tdes)
 {
-    String e=s+ " (at t=" + String(t_tdes.bars) + ": " + String(t_tdes.whole_in_measure) + ")\n";
+    String e=s+ " (at t=" + String(t_tdes.bars_i_) + ": " + String(t_tdes.whole_in_measure_) + ")\n";
     error(e);
 }
 
@@ -72,5 +72,10 @@ void
 error( String message_str, char const* context_ch_c_l )
 {
     message( message_str, context_ch_c_l );
-    exit( 1 );
+    // since when exits error again?
+    // i-d say: error: errorlevel |= 1; -> no output upon error
+    //          warning: recovery -> output (possibly wrong)
+    if ( lexer )
+        lexer->errorlevel_i_ |= 1;
+//    exit( 1 );
 }