add path prefix to exception message.