From: Ulrich Eckhardt <doomster@knuut.de>
authorUlrich Eckhardt <doomster@knuut.de>
Wed, 15 Jun 2011 09:38:08 +0000 (09:38 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Wed, 15 Jun 2011 09:38:08 +0000 (09:38 +0000)
commitdaabb017dc0ef383c1d3c6cfea0eb8211508b1fa
tree9871dc63eb98c605ace1ce2f9ecbc52c0fc40e5b
parent872982039333cce2b8d20949e1cb5ebe9c339050
From: Ulrich Eckhardt <doomster@knuut.de>
Subject: [E-devel] Provide sensible errors for edje utilities

If you start edje_player or edje_inspector with a path to a file that doesn't
exist you get a bogus error message saying that the file doesn't contain any
groups. The attached patch uses access() to check if the program can read the
file, giving a sensible error message if not.

I have checked the other utilities there, too, and they work, with the
exception of edje_external_inspector. I'm not sure how this one works at all,
but it seems not to take a file but a list of modules, maybe someone with
greater insight can take a look at that.

Going through things installed under bin, I'll take a look if those behave
properly and create patches for those, too, if this one is okay.

SVN revision: 60338
legacy/edje/src/bin/edje_inspector.c
legacy/edje/src/bin/edje_player.c