lib/repo: Add some error prefixing in commit, repo create

I was getting a bare `error: Creating temp file: No such file or directory` when
debugging `test-concurrency.py`; with this I get
`error: Writing content object: Creating temp file: No such file or directory`
which helps me pin it down.

Closes: #1343
Approved by: cgwalters
This commit is contained in:
Colin Walters authored and Atomic Bot committed 2017-12-05 02:32:47 +00:00
1 parent 89a57bb6d8
commit e48262c659
2 files changed
+7 -2

No files matched your search

+1
View File
@@ -1797,6 +1797,7 @@ repo_create_at_internal (int dfd,
GCancellable *cancellable,
GError **error)
{
GLNX_AUTO_PREFIX_ERROR ("Creating repo", error);
struct stat stbuf;
/* We do objects/ last - if it exists we do nothing and exit successfully */
const char *state_dirs[] = { "tmp", "extensions", "state",