Skip to content

Commit c5d432e

Browse files
committed
Issue 65: Rethrow exceptions rather than returning the exception message.
1 parent 7919466 commit c5d432e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Strava/API/Service/REST.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ protected function getResponse($method, $path, $parameters)
103103
return $result;
104104
}
105105
catch (\Exception $e) {
106-
return $e->getMessage();
106+
throw new Exception('[SERVICE] ' . $e->getMessage());
107107
}
108108
}
109109

0 commit comments

Comments
 (0)