Updated gui error message to current flag