Index: third_party/mojo/src/mojo/public/go/bindings/util.go |
diff --git a/third_party/mojo/src/mojo/public/go/bindings/util.go b/third_party/mojo/src/mojo/public/go/bindings/util.go |
index abbedb3fe04170c32dcc4aa0441abb431c64bde8..3b40c64d523f8c5b14d1c731cabb0ceb35e9cda1 100644 |
--- a/third_party/mojo/src/mojo/public/go/bindings/util.go |
+++ b/third_party/mojo/src/mojo/public/go/bindings/util.go |
@@ -5,7 +5,6 @@ |
package bindings |
import ( |
- "fmt" |
"sync/atomic" |
"mojo/public/go/system" |
@@ -25,7 +24,7 @@ func bytesForBits(bits uint64) int { |
func WriteMessage(handle system.MessagePipeHandle, message *Message) error { |
result := handle.WriteMessage(message.Bytes, message.Handles, system.MOJO_WRITE_MESSAGE_FLAG_NONE) |
if result != system.MOJO_RESULT_OK { |
- return fmt.Errorf("error writing message: %v", result) |
+ return &ConnectionError{result} |
} |
return nil |
} |