Distinguish the error reporting for the cases of wrong size and wrong