Allow .docbook files as file path, #699995
[yelp.git] / libyelp / yelp-error.c
blob08c85b324690e038aea26f585ff630f2799c97e6
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * Copyright (C) 2009 Shaun McCance <shaunm@gnome.org>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, see <http://www.gnu.org/licenses/>.
18 * Author: Shaun McCance <shaunm@gnome.org>
21 #ifdef HAVE_CONFIG_H
22 #include <config.h>
23 #endif
25 #include <glib.h>
26 #include <glib/gi18n.h>
28 #include "yelp-error.h"
30 GError *
31 yelp_error_copy (GError *error)
33 if (error == NULL)
34 return g_error_new (YELP_ERROR, YELP_ERROR_UNKNOWN,
35 _("An unknown error occurred."));
36 else
37 return g_error_copy (error);