Lines Matching refs:err
69 f, err := os.Open(n.path)
70 if err != nil {
71 panic(err)
75 if _, err := io.Copy(h, f); err != nil {
76 panic(err)
80 s, err := os.Readlink(n.path)
81 if err != nil {
82 panic(err)
84 if _, err := io.WriteString(h, s); err != nil {
85 panic(err)
123 absDir, err := filepath.Abs(dir)
124 if err != nil {
125 panic(err)
128 err = filepath.Walk(dir, func(path string, stat os.FileInfo, err error) error {
129 if err != nil {
130 panic(err)
135 absPath, err := filepath.Abs(path)
136 if err != nil {
137 panic(err)
139 devicePath, err := filepath.Rel(deviceRoot, absPath)
140 if err != nil {
141 panic(err)
147 if err != nil {
148 panic(err)
167 j, err := json.MarshalIndent(allOutput, "", " ")
168 if err != nil {