diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/action/custom.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/action/custom.rb b/lib/action/custom.rb index 2aea41a..328a12f 100644 --- a/lib/action/custom.rb +++ b/lib/action/custom.rb @@ -54,6 +54,8 @@ module Action raise UnsuccessfulError, 'Response was not valid JSON' end + inform_client(body['message']) if body['message'] + print_flush(body['result']) # In the context of the git push sequence of events, it's necessary to read @@ -94,6 +96,10 @@ module Action $stdout.flush end + def inform_client(str) + $stderr.puts(str) + end + def validate! validate_payload! validate_data! |
