changeset 34:bc465afed423

unet2pads: exit with an error if the pads_parttype is missing on any component
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sat, 08 Aug 2015 23:23:55 +0000
parents 2af4a85daf89
children 47b5b8310cac
files ueda/unet-utils/unet2pads.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ueda/unet-utils/unet2pads.c	Sat Aug 08 23:06:59 2015 +0000
+++ b/ueda/unet-utils/unet2pads.c	Sat Aug 08 23:23:55 2015 +0000
@@ -250,6 +250,8 @@
 	input_filename = argv[1];
 	output_filename = argv[2];
 	process_input_unet();
+	if (no_parttype_errors)
+		exit(1);
 	generate_output();
 	exit(0);
 }