[gnome-games: 2/2] retro: Simplify error catching in try_load_game()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games: 2/2] retro: Simplify error catching in try_load_game()
- Date: Wed, 17 May 2017 04:52:38 +0000 (UTC)
commit a49e0ab8bf1b7cdee329d2209080a900262c2645
Author: Adrien Plazas <kekun plazas laposte net>
Date: Wed May 17 06:49:22 2017 +0200
retro: Simplify error catching in try_load_game()
This makes the code simpler and will avoid retro-gtk to expose this
error type.
src/retro/retro-runner.vala | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index 7e5cb9b..77b9b77 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -312,11 +312,8 @@ public class Games.RetroRunner : Object, Runner {
return true;
}
}
- catch (GLib.FileError e) {
- stderr.printf ("Error: %s\n", e.message);
- }
- catch (Retro.CbError e) {
- stderr.printf ("Error: %s\n", e.message);
+ catch (Error e) {
+ debug (e.message);
}
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]