Commits

Denis Khabarov committed 2969731

fix

  • Participants
  • Parent commits d47d370

Comments (0)

Files changed (1)

 	end
 	if not tArgs['addr'] or type(tArgs['addr']) ~= 'string' then
 		print('Argument \'addr\' is nil or not string')
+		show_usage()
 		os.exit(NAG_STATES['UNKNOWN'])
 	end
 	if not tArgs["port"] or type(tArgs["port"]) ~= 'string' then
 		os.exit(NAG_STATES['UNKNOWN'])
 	end
 	if tArgs['expecthubname'] and type(tArgs['expecthubname']) ~= 'string' then
-		print('Argument \'expecthubname\' is nil or not string: ')
+		print('Argument \'expecthubname\' is nil or not string')
 		os.exit(NAG_STATES['UNKNOWN'])
 	end
 end