Skip to content

Commit cb6edc5

Browse files
committed
fixes
1 parent c385e48 commit cb6edc5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

grails-app/services/com/getsaasy/plugin/AbstractSaasyService.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ abstract class AbstractSaasyService {
193193

194194
// failure handler
195195
response.failure = { resp, reader ->
196-
println '> FAILURE '+reader.class
196+
println '> FAILURE '+reader?.class
197197
output << [
198198
status:resp.status,
199199
message:resp.statusLine,
200-
rawText:reader.text,
200+
rawText:reader?.text,
201201
content:reader // if there is any
202202
]
203203
}

grails-app/services/com/getsaasy/plugin/SaasyCompositeService.groovy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,9 @@ class SaasyCompositeService extends AbstractSaasyService {
1919
]
2020
doApiCall(SERVICE_BASE_PATH, params, body, POST)
2121
}
22+
23+
def ping(params) {
24+
doApiCall('/api/ping', params, null, GET)
25+
}
26+
2227
}

0 commit comments

Comments
 (0)