summaryrefslogtreecommitdiff
path: root/cd-tool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cd-tool.cpp')
-rw-r--r--cd-tool.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/cd-tool.cpp b/cd-tool.cpp
index 85f4a8a..3774168 100644
--- a/cd-tool.cpp
+++ b/cd-tool.cpp
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: cd-tool.cpp,v 1.38 2004-12-21 11:14:16 pixel Exp $ */
+/* $Id: cd-tool.cpp,v 1.39 2004-12-27 18:46:44 pixel Exp $ */
#define WIP
@@ -279,10 +279,11 @@ int sLua_cdtool::cdtool_proceed_statics(Lua * L, int n, int caller) {
case CDTOOL_PRINT:
eol = "\n";
case CDTOOL_PRINTN:
- if (n)
- p = L->tostring(1) + eol;
- else
+ if (n) {
+ p = L->tostring(1) + eol;
+ } else {
p = eol;
+ }
tc = p.strdup();
printm(M_BARE, "%s", tc);
free(tc);
@@ -567,7 +568,6 @@ virtual int startup() throw (GeneralException) {
}
catch (GeneralException e) {
printm(M_WARNING, "There was an error loading built-in cd-tool.lua: %s\n", e.GetMsg());
- builtin = true;
}
}
@@ -676,6 +676,7 @@ virtual int startup() throw (GeneralException) {
/* If there was an error, ignore it, and free the stack */
while(L->gettop())
L->pop();
+ printm(M_ERROR, "%s\n", e.GetMsg());
}
catch (GeneralException e) {
/* A more severe exception... */