1 
2 /*
3  *  M_APM  -  mapmutl1.c
4  *
5  *  Copyright (C) 2003 - 2007   Michael C. Ring
6  *
7  *  Permission to use, copy, and distribute this software and its
8  *  documentation for any purpose with or without fee is hereby granted,
9  *  provided that the above copyright notice appear in all copies and
10  *  that both that copyright notice and this permission notice appear
11  *  in supporting documentation.
12  *
13  *  Permission to modify the software is granted. Permission to distribute
14  *  the modified code is granted. Modifications are to be distributed by
15  *  using the file 'license.txt' as a template to modify the file header.
16  *  'license.txt' is available in the official MAPM distribution.
17  *
18  *  This software is provided "as is" without express or implied warranty.
19  */
20 
21 /*
22 
23  *
24  *      This file contains the utility function 'M_apm_log_error_msg'
25  *
26  *	This is the only function in this file so a user can supply
27  *	their own custom version easily without changing the base library.
28  */
29 
30 #include "pgAdmin3.h"
31 #include "pgscript/utilities/mapm-lib/m_apm_lc.h"
32 
33 /****************************************************************************/
M_apm_log_error_msg(int fatal,const char * message)34 void	M_apm_log_error_msg(int fatal, const char *message)
35 {
36 	if (fatal)
37 	{
38 		fprintf(stderr, "MAPM Error: %s\n", message);
39 		exit(100);
40 	}
41 	else
42 	{
43 		fprintf(stderr, "MAPM Warning: %s\n", message);
44 	}
45 }
46 /****************************************************************************/
47 
48