Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1524)

Unified Diff: third_party/mojo/src/mojo/public/go/bindings/util.go

Issue 1127293003: Update mojo sdk to rev f84766d3b6420b7cf6a113d9d65d73cb5fe18d90 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
}

Powered by Google App Engine
This is Rietveld 408576698