# HG changeset patch # User Robert McIntyre # Date 1319207213 25200 # Node ID a378631263965315248877409adbf026a2c2a369 # Parent 6a2c890c22db0688207e09995d6c773a82313f28 reordered error messages diff -r 6a2c890c22db -r a37863126396 convert/spc_convert.c --- a/convert/spc_convert.c Fri Oct 21 07:25:01 2011 -0700 +++ b/convert/spc_convert.c Fri Oct 21 07:26:53 2011 -0700 @@ -17,13 +17,14 @@ int seconds = atoi(argv[2]); + if (argc != 7) { + error("Incorrect Arguments\n Sample invocation: \n spc_convert -s 5 -i input.spc -o output.wav"); + } + if (seconds <=0){ error("seconds must be positive."); } - if (argc != 7) { - error("Incorrect Arguments\n Sample invocation: \n spc_convert -s 5 -i input.spc -o output.wav"); - } /* Load SPC */ { /* Load file into memory */