From e0c166f63120d4e9b1fb038ba713166dddf5ed9c Mon Sep 17 00:00:00 2001 From: Marc Doering Date: Wed, 2 Mar 2016 14:48:57 -0600 Subject: [PATCH] fixing issue #77 - adding property validiation to raven config object when setting dsn --- AUTHORS | 3 ++- Raven/RavenConfig.m | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index c96aaa3..25a1a52 100644 --- a/AUTHORS +++ b/AUTHORS @@ -8,4 +8,5 @@ Arthur Darcet- https://github.com/arthurdarcet lesterkp - https://github.com/lesterkp Christoph Lupprich - https://github.com/clupprich Dmitry Vorobyov - https://github.com/dvor -Mark Anderson - https://github.com/manderson-productions \ No newline at end of file +Mark Anderson - https://github.com/manderson-productions +Marc Doering - https://github.com/triskybro \ No newline at end of file diff --git a/Raven/RavenConfig.m b/Raven/RavenConfig.m index 285ac05..1cc5259 100644 --- a/Raven/RavenConfig.m +++ b/Raven/RavenConfig.m @@ -48,6 +48,10 @@ - (BOOL)setDSN:(NSString *)DSN { self.publicKey = [DSNURL user]; self.secretKey = [DSNURL password]; + if (!self.serverURL || !self.publicKey || !self.secretKey) { + return NO; + } + return YES; }