[gnome-chess] ChessEngine: consistently call g_warning on errors
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] ChessEngine: consistently call g_warning on errors
- Date: Sat, 2 Nov 2013 20:10:03 +0000 (UTC)
commit 2f0189657f92b76221d200581e239b151efc3e30
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Nov 2 12:54:51 2013 -0500
ChessEngine: consistently call g_warning on errors
src/chess-engine.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/chess-engine.vala b/src/chess-engine.vala
index 3e83189..43ef545 100644
--- a/src/chess-engine.vala
+++ b/src/chess-engine.vala
@@ -67,7 +67,7 @@ public abstract class ChessEngine : Object
}
catch (SpawnError e)
{
- stderr.printf ("Failed to execute chess engine: %s\n", e.message);
+ warning ("Failed to execute chess engine: %s\n", e.message);
return false;
}
@@ -80,7 +80,7 @@ public abstract class ChessEngine : Object
}
catch (IOChannelError e)
{
- stderr.printf ("Failed to set input from chess engine to non-blocking: %s", e.message);
+ warning ("Failed to set input from chess engine to non-blocking: %s", e.message);
}
stdout_watch_id = stdout_channel.add_watch (IOCondition.IN, read_cb);
@@ -125,10 +125,12 @@ public abstract class ChessEngine : Object
}
catch (ConvertError e)
{
+ warning ("Failed to read from engine: %s", e.message);
return false;
}
catch (IOChannelError e)
{
+ warning ("Failed to read from engine: %s", e.message);
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]