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 * ====================================================================
24 #include "svn_private_config.h"
29 #include "../libsvn_fs/fs-loader.h"
33 /* Building common error objects. */
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
);
47 svn_fs_fs__err_corrupt_lockfile(svn_fs_t
*fs
, const char *path
)
51 (SVN_ERR_FS_CORRUPT
, 0,
52 _("Corrupt lockfile for path '%s' in filesystem '%s'"),