Change the format of the revprops block sent in svnserve for
[svn.git] / subversion / libsvn_fs_fs / err.c
blob065805435abf70d7190bdd86edc9c5c4175b5342
1 /*
2 * err.c : implementation of fs-private error functions
4 * ====================================================================
5 * Copyright (c) 2000-2004 CollabNet. All rights reserved.
7 * This software is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at http://subversion.tigris.org/license-1.html.
10 * If newer versions of this license are posted there, you may use a
11 * newer version instead, at your option.
13 * This software consists of voluntary contributions made by many
14 * individuals. For exact contribution history, see the revision
15 * history and logs, available at http://subversion.tigris.org/.
16 * ====================================================================
21 #include <stdlib.h>
22 #include <stdarg.h>
24 #include "svn_private_config.h"
25 #include "svn_fs.h"
26 #include "err.h"
27 #include "id.h"
29 #include "../libsvn_fs/fs-loader.h"
33 /* Building common error objects. */
36 svn_error_t *
37 svn_fs_fs__err_dangling_id(svn_fs_t *fs, const svn_fs_id_t *id)
39 svn_string_t *id_str = svn_fs_fs__id_unparse(id, fs->pool);
40 return svn_error_createf
41 (SVN_ERR_FS_ID_NOT_FOUND, 0,
42 _("Reference to non-existent node '%s' in filesystem '%s'"),
43 id_str->data, fs->path);
46 svn_error_t *
47 svn_fs_fs__err_corrupt_lockfile(svn_fs_t *fs, const char *path)
49 return
50 svn_error_createf
51 (SVN_ERR_FS_CORRUPT, 0,
52 _("Corrupt lockfile for path '%s' in filesystem '%s'"),
53 path, fs->path);