Skip to content
Snippets Groups Projects
Commit 4114edaa authored by capossele's avatar capossele
Browse files

:art: fixes getTransaction error handling

parent fcc949a5
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,10 @@ var (
func getTransaction(h []byte) ([]byte, error) {
log.Info("Retrieving tx:", string(h))
tx, err := tangle.GetTransaction(string(h))
if err != nil || tx == nil {
if err != nil {
return []byte{}, err
}
if tx == nil {
return []byte{}, errors.New("Not found")
}
pTx := &pb.TransactionRequest{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment