summaryrefslogtreecommitdiffstats
path: root/src/error/check_ncbi_error.c (plain)
blob: 6071d1a1d3c6877ee787cdff3367847382162825
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "check_ncbi_error.h"
#include <error.h>
#include <stdlib.h>
#include <blast.h>

void
check_ncbi_error (ValNodePtr error_returns,
		  const char *filename, unsigned int linenum)
{
  error_at_line (EXIT_FAILURE, 0, filename, linenum,
		 "An error has been reported by the NCBI Toolkit API: %s",
		 BlastErrorToString (error_returns));

  return;
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.