]> granicus.if.org Git - graphviz/commitdiff
Make the inability to open a file a warning rather than a hard error
authorEmden Gansner <erg@research.att.com>
Tue, 28 Aug 2012 17:23:17 +0000 (13:23 -0400)
committerEmden Gansner <erg@research.att.com>
Tue, 28 Aug 2012 17:23:17 +0000 (13:23 -0400)
lib/gvpr/actions.c

index 16e9d65afc639a44efc0f7e71785e5d2c95ae093..f0ba9232cce654e8db3848d7b4ba6ed3d59bd9da 100644 (file)
@@ -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);