lilypond-1.1.47
[lilypond.git] / lib / warn.cc
blob16e7e82fded46cea2217552c138d457b1f181137
1 #include "warn.hh"
2 #include <stream.h>
4 void
5 error (String s)
7 cerr << _ ("error: ") << s << '\n';
9 exit (1);
12 void
13 non_fatal_error (String s)
15 cerr << _ ("error: ") << s << '\n';
18 void
19 warning (String m)
21 cerr << _ ("warning: ") <<m <<endl;
25 void
26 message (String m)
28 cerr << m<<endl;
30 void
31 programming_error (String s)
33 cerr << _("Programming error: ") << s << _(" (continuing; cross thumbs)") << '\n';