Switch from print_error to print_warning
Fix error description and bad variable usage