+2006-01-27 Jan Nieuwenhuizen <janneke@gnu.org>
+
+ * lily/main.cc (main): Debugging aid: catch exceptions.
+
+ * flower/std-string.cc (to_string): Robustication. Fixes midi
+ output with std::string.
+
2006-01-27 Han-Wen Nienhuys <hanwen@xs4all.nl>
* Documentation/topdocs/INSTALL.texi (Top): remove libkpathsea notes.
std::string
to_string (char c, int n)
{
- return std::string (n, c);
+ return std::string (max (n, 0), c);
}
std::string
setup_paths (argv[0]);
setup_guile_env ();
- scm_boot_guile (argc, argv, main_with_guile, 0);
+
+ /* Debugging aid. */
+ try
+ {
+ scm_boot_guile (argc, argv, main_with_guile, 0);
+ }
+ catch (exception e)
+ {
+ error (_f ("exception caught: %s", e.what ()));
+ };
/* Only reachable if GUILE exits. That is an error. */
return 1;