From: Emden Gansner Date: Tue, 28 Aug 2012 17:23:17 +0000 (-0400) Subject: Make the inability to open a file a warning rather than a hard error X-Git-Tag: LAST_LIBGRAPH~32^2~325 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f6ddd90c7a126dbc48b915d192851bbc2595e17;p=graphviz Make the inability to open a file a warning rather than a hard error --- diff --git a/lib/gvpr/actions.c b/lib/gvpr/actions.c index 16e9d65af..f0ba9232c 100644 --- a/lib/gvpr/actions.c +++ b/lib/gvpr/actions.c @@ -614,7 +614,7 @@ int writeFile(Agraph_t * g, char *f, Agiodisc_t* io) } fp = sfopen(0, f, "w"); if (!fp) { - exerror("Could not open %s for writing in writeG", f); + exwarn("Could not open %s for writing in writeG", f); return 1; } rv = sfioWrite(g, fp, io); @@ -637,7 +637,7 @@ Agraph_t *readFile(char *f) } fp = sfopen(0, f, "r"); if (!fp) { - exerror("Could not open %s for reading in readG", f); + exwarn("Could not open %s for reading in readG", f); return 0; } gp = readG(fp);