use custom error for PATCH syntax problems

Signed-off-by: Jan Dvořák <mordae@anilinux.org>