diff simtool/plmnsel.c @ 197:3ddbc3fea5f0

encode_plmn_3bytes() error handling change in preparation for PLMN list reading addition
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 07 Mar 2021 02:36:27 +0000
parents 32acef9d20ff
children 3bde063234aa
line wrap: on
line diff
--- a/simtool/plmnsel.c	Sun Mar 07 01:56:02 2021 +0000
+++ b/simtool/plmnsel.c	Sun Mar 07 02:36:27 2021 +0000
@@ -110,8 +110,10 @@
 		return(-1);
 	}
 	rc = encode_plmn_3bytes(argv[2], rec);
-	if (rc < 0)
+	if (rc < 0) {
+		fprintf(stderr, "error: invalid MCC-MNC argument\n");
 		return(rc);
+	}
 	return update_bin_op(idx * 3, rec, 3);
 }