[WIP]Extracted the printPre/Post hook failure func
[WIP]Extracted the printPre/Post hook failure func

passing 'GetPreHook' and 'GetPostHook' to 'printHookFailure' func
to get the error message.

getgauge/gauge,getgauge/gauge,getgauge/gauge,getgauge/gauge,getgauge/gauge