Author: Carlos Lopez <genet...@gmail.com> Date: Sun May 1 12:18:27 2011 +0200
Fix bug:2175043 Suit a better handling and message for the case of path not writable or not exists for the command line renderer. --- synfig-core/src/tool/main.cpp | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/synfig-core/src/tool/main.cpp b/synfig-core/src/tool/main.cpp index 1bd614e..750d9bf 100644 --- a/synfig-core/src/tool/main.cpp +++ b/synfig-core/src/tool/main.cpp @@ -37,6 +37,7 @@ #include <ETL/clock> #include <algorithm> #include <cstring> +#include <errno.h> #include <synfig/loadcanvas.h> #include <synfig/savecanvas.h> @@ -1217,7 +1218,12 @@ int main(int argc, char *argv[]) VERBOSE_OUT(4)<<"target_name="<<target_name<<endl; VERBOSE_OUT(4)<<"outfile_name="<<job_list.front().outfilename<<endl; - + if (access(dirname(job_list.front().outfilename).c_str(),W_OK) == -1) + { + cerr<<(_("Unable to create ouput for ")+job_list.front().outfilename+": "+strerror(errno))<<endl; + job_list.pop_front(); + continue; + } VERBOSE_OUT(4)<<_("Creating the target...")<<endl; job_list.front().target = synfig::Target::create(target_name, ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl