Added error message for invalid contents page num.

Related to issue #11.