| OLD | NEW |
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 package main | 5 package main |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "fmt" | 8 "fmt" |
| 9 "strings" | 9 "strings" |
| 10 | 10 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 if err := python.exec(scriptPath, args...).cwd(buildDir).check(w
); err != nil { | 98 if err := python.exec(scriptPath, args...).cwd(buildDir).check(w
); err != nil { |
| 99 return errors.Annotate(err).Reason("failed to execute [%
(scriptPath)s]").D("scriptPath", scriptPath).Err() | 99 return errors.Annotate(err).Reason("failed to execute [%
(scriptPath)s]").D("scriptPath", scriptPath).Err() |
| 100 } | 100 } |
| 101 return nil | 101 return nil |
| 102 | 102 |
| 103 default: | 103 default: |
| 104 return errors.Reason("unknown build type %(type)T").D("type", t)
.Err() | 104 return errors.Reason("unknown build type %(type)T").D("type", t)
.Err() |
| 105 } | 105 } |
| 106 } | 106 } |
| OLD | NEW |