summaryrefslogtreecommitdiff
path: root/kicad/dwg.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-23 14:46:04 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-23 14:46:04 -0300
commitf5fa04cbf3ac9011f4f144cd68543f8d9536e3fd (patch)
treeac9160ef7ef5963e296144fb75845db56ba62e7c /kicad/dwg.c
parent061dd9094a903be73e3aa7a65aafb8bcb70010b7 (diff)
downloadeeshow-f5fa04cbf3ac9011f4f144cd68543f8d9536e3fd.tar.gz
eeshow-f5fa04cbf3ac9011f4f144cd68543f8d9536e3fd.tar.bz2
eeshow-f5fa04cbf3ac9011f4f144cd68543f8d9536e3fd.zip
misc/diag.h (BUG): more useful diagnostics; replace all "abort" with it
Diffstat (limited to 'kicad/dwg.c')
-rw-r--r--kicad/dwg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kicad/dwg.c b/kicad/dwg.c
index 261d0c3..799c329 100644
--- a/kicad/dwg.c
+++ b/kicad/dwg.c
@@ -18,6 +18,7 @@
#include <assert.h>
#include "misc/util.h"
+#include "misc/diag.h"
#include "gfx/misc.h"
#include "gfx/style.h"
#include "gfx/text.h"
@@ -74,7 +75,7 @@ static enum box_type flip_box(enum box_type box)
case box_both:
return box_both;
default:
- abort();
+ BUG("invalid box type %d", box);
}
}