Fixed: printing correct error values in __main__