fix wrong argument error message
Merge pull request #10012 from vipulnsward/fix_AP_error_message_error

fix wrong argument error message [ci skip]