Merge pull request #213 from laijs/error-message

richer information error message for terminal
This commit is contained in:
Mrunal Patel 2015-08-19 20:15:19 -07:00
commit e98d8e8ae2
1 changed files with 2 additions and 1 deletions

3
tty.go
View File

@ -3,6 +3,7 @@
package main
import (
"fmt"
"io"
"os"
@ -56,7 +57,7 @@ func createTty(p *libcontainer.Process, rootuid int) (*tty, error) {
go io.Copy(os.Stdout, console)
state, err := term.SetRawTerminal(os.Stdin.Fd())
if err != nil {
return nil, err
return nil, fmt.Errorf("failed to set the terminal from the stdin: %v", err)
}
t := &tty{
console: console,