aboutsummaryrefslogtreecommitdiffstats
path: root/src/zperror.c
blob: 37bd5c73a9d44bcbaf079fc8aca33dbe97c8b01f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* See LICENSE file for copyright and license details. */
#include "internals.h"

#include <stdio.h>


void
zperror(const char *prefix)
{
	if (libzahl_error >= 0) {
		errno = libzahl_error;
		perror(prefix);
	} else {
		/* Current, we should not be able to get here. */
		abort();
	}
}