Skip to content

Commit

Permalink
warning message format updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkFieseln committed Aug 22, 2021
1 parent 024e974 commit 92315a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions as4pgc/AS4PGC.py
Original file line number Diff line number Diff line change
Expand Up @@ -1269,8 +1269,8 @@ def write():
if(LEN_ENCR_MSG_BITS > MAX_NR_OF_CODED_CHUNKS*MAX_NR_OF_CODE_FREQUENCIES):
logging.error("Error: message too large! msg_len_bits = "+str(LEN_ENCR_MSG_BITS)+", MAX_NR_OF_CODED_CHUNKS*MAX_NR_OF_CODE_FREQUENCIES = "+\
str(MAX_NR_OF_CODED_CHUNKS*MAX_NR_OF_CODE_FREQUENCIES))
logging.error(" If close to complete, you may try a different password or configuration or just try again. Otherwise you need to select a different/bigger \
carrier file or reduce your messaage, e.g. split it.")
logging.error(" If close to complete, you may try a different password or configuration or just try again. Otherwise you need to select \
a different/bigger carrier file or reduce your messaage, e.g. split it.")
if DO_PLOT == True:
input("Press Enter to exit...")
exit(cf.f_lineno)
Expand Down Expand Up @@ -1375,7 +1375,7 @@ def write():
logging.error("Error: message too large! msg_len_bits = " + str(LEN_ENCR_MSG_BITS) + ", remaining_nr_of_coding_bits = " + \
str(remaining_nr_of_coding_bits)+" found in iteration "+str(curr_iteration))
logging.error(" If close to complete, you may try a different password or configuration or just try again. Otherwise you need to select \
a different/bigger carrier file or reduce your messaage, e.g. split it.")
a different/bigger carrier file or reduce your messaage, e.g. split it.")
exit(cf.f_lineno)
else:
logging.info("The Message still fits inside the carrier, msg_len_bits = " + str(LEN_ENCR_MSG_BITS) + " < remaining_nr_of_coding_bits = " + \
Expand Down Expand Up @@ -2877,7 +2877,7 @@ def read():
logging.error("Error: message too large! msg_len_bits = "+str(LEN_ENCR_MSG_BITS)+", MAX_NR_OF_CODED_CHUNKS*MAX_NR_OF_CODE_FREQUENCIES = "+\
str(MAX_NR_OF_CODED_CHUNKS*MAX_NR_OF_CODE_FREQUENCIES))
logging.error(" If close to complete, you may try a different password or configuration or just try again. Otherwise you need to select a \
different/bigger carrier file or reduce your messaage, e.g. split it.")
different/bigger carrier file or reduce your messaage, e.g. split it.")
if DO_PLOT == True:
input("Press Enter to exit...")
exit(cf.f_lineno)
Expand Down

0 comments on commit 92315a8

Please sign in to comment.