While I understand your point, magic strings are never a good thing. Can we create a new error type and compare error types instead of matching the message?