Revision: 1365
Author: [email protected]
Date: Sun Sep 19 10:29:34 2010
Log: clarify error when unable to open profile file for writing
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1365
Modified:
/trunk/NYTProf.xs
=======================================
--- /trunk/NYTProf.xs Thu Sep 16 09:51:26 2010
+++ /trunk/NYTProf.xs Sun Sep 19 10:29:34 2010
@@ -1634,7 +1634,8 @@
if (fopen_errno==EEXIST && !(profile_opts & NYTP_OPTf_ADDPID))
hint = " (enable addpid option to protect against concurrent
writes)";
disable_profile(aTHX);
- croak("Failed to open output '%s': %s%s", filename,
strerror(fopen_errno), hint);
+ croak("NYTProf failed to open '%s' for writing, error %d: %s%s",
+ filename, fopen_errno, strerror(fopen_errno), hint);
}
if (trace_level >= 1)
logwarn("~ opened %s\n", filename);
--
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.
Group hosted at: http://groups.google.com/group/develnytprof-dev
Project hosted at: http://perl-devel-nytprof.googlecode.com
CPAN distribution: http://search.cpan.org/dist/Devel-NYTProf
To post, email: [email protected]
To unsubscribe, email: [email protected]