You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Kengo Seki (Jira)" <ji...@apache.org> on 2019/12/28 23:48:00 UTC

[jira] [Created] (THRIFT-5052) Make the Go tutorial executable to the end

Kengo Seki created THRIFT-5052:
----------------------------------

             Summary: Make the Go tutorial executable to the end
                 Key: THRIFT-5052
                 URL: https://issues.apache.org/jira/browse/THRIFT-5052
             Project: Thrift
          Issue Type: Improvement
          Components: Tutorial
            Reporter: Kengo Seki
            Assignee: Kengo Seki


Running the Go tutorial fails with division by zero, as follows:

{code}
thrift/tutorial/go$ make tutorialclient
/home/sekikn/repos/thrift/compiler/cpp/thrift --gen go -r ../../tutorial/tutorial.thrift
GOPATH=`pwd` /usr/bin/go run src/*.go
ping()
1+1=2
Invalid operation: InvalidOperation({WhatOp:4 Why:Cannot divide by 0})
error running client: InvalidOperation({WhatOp:4 Why:Cannot divide by 0})
{code}

But I think it should be executed to the end just as other language examples, because the error is an intended one and this is a code example.




--
This message was sent by Atlassian Jira
(v8.3.4#803005)