From f96ba5be186473ed2737142f5851bd47abed7684 Mon Sep 17 00:00:00 2001 From: gardners Date: Mon, 21 May 2012 22:19:47 +0930 Subject: [PATCH] added various debugging, including revealing problem forming file names for rhizome bundles being imported. --- rhizome.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rhizome.c b/rhizome.c index 7432f6d5..1eb9a0e8 100644 --- a/rhizome.c +++ b/rhizome.c @@ -39,6 +39,9 @@ int rhizome_bundle_import(rhizome_manifest *m_in, rhizome_manifest **m_out, cons if (!FORM_RHIZOME_DATASTORE_PATH(filename, "import/file.%s", bundle) || !FORM_RHIZOME_DATASTORE_PATH(manifestname, "import/manifest.%s", bundle)) return WHY("Manifest bundle name too long"); + WHYF("bundle='%s'",bundle); + WHYF("filename='%s'",filename); + WHYF("manifestname='%s'",manifestname); /* Read manifest file if no manifest was given */ rhizome_manifest *m = m_in; @@ -186,7 +189,7 @@ int rhizome_add_manifest(rhizome_manifest *m_in, if (checkFileP) { struct stat stat; if (lstat(filename,&stat)) - return WHY("Could not stat() payload file"); + return WHYF("Could not stat() payload file '%s'",filename); m_in->fileLength = stat.st_size; long long mfilesize = rhizome_manifest_get_ll(m_in, "filesize"); if (mfilesize != -1 && mfilesize != m_in->fileLength) {