From: Ulrich Eckhardt <doomster@knuut.de>
authorUlrich Eckhardt <doomster@knuut.de>
Wed, 15 Jun 2011 09:38:08 +0000 (09:38 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 15 Jun 2011 09:38:08 +0000 (09:38 +0000)
commit03dca9b10352c3f4db3359c33e2766cdaf52368d
tree5151064a70f04b67adf699706c39be7567aa2ff7
parent345a754690b4322b9da2ff0fcdcb8c423b4a7317
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.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@60338 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/bin/edje_inspector.c
src/bin/edje_player.c