about summary refs log tree commit diff stats
path: root/numericx.c
diff options
context:
space:
mode:
Diffstat (limited to 'numericx.c')
-rw-r--r--numericx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/numericx.c b/numericx.c
index 287b6d0..bf853ba 100644
--- a/numericx.c
+++ b/numericx.c
@@ -230,9 +230,10 @@ main(int argc, char* argv[])
 	/* Check if number belongs to it's numerical system */
 	if( !is_valid_number(from, number) )
 	{
+		fprintf(stderr, "error: %s: %s.\nValid numerals are: \"%s\"\n",
+				PROG_NAME, strerror(EDOM), from);
 		free(from);
 		free(to);
-		fprintf(stderr, "error: %s: %s.\n", PROG_NAME, strerror(EDOM));
 		exit(EDOM);
 	}