| Index: examples/echo_terminal/main.cc
|
| diff --git a/examples/echo_terminal/main.cc b/examples/echo_terminal/main.cc
|
| index 548a463aff46151c505972208205d71eb173361a..a199a5c05d83ef175e287390f084e652ec714892 100644
|
| --- a/examples/echo_terminal/main.cc
|
| +++ b/examples/echo_terminal/main.cc
|
| @@ -41,7 +41,7 @@ class TerminalEchoer {
|
|
|
| // |Read()| callback:
|
| void OnRead(mojo::files::Error error, mojo::Array<uint8_t> bytes_read) {
|
| - if (error) {
|
| + if (error != mojo::files::ERROR_OK) {
|
| LOG(ERROR) << "Error: Read(): " << error;
|
| delete this;
|
| return;
|
| @@ -71,7 +71,7 @@ class TerminalEchoer {
|
|
|
| // |Write()| callback:
|
| void OnWrite(mojo::files::Error error, uint32_t num_bytes_written) {
|
| - if (error) {
|
| + if (error != mojo::files::ERROR_OK) {
|
| LOG(ERROR) << "Error: Write(): " << error;
|
| delete this;
|
| return;
|
|
|