Provide more user-friendly error messages for invalid permalinks
Merge pull request #412 from ihanson/permalink_err

more friendly error messages for permalinks