| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Module containing update exceptions.""" | 5 """Module containing update exceptions.""" |
| 6 | 6 |
| 7 class UpdateException(Exception): | 7 class UpdateException(Exception): |
| 8 """Exception thrown when _UpdateImage or _UpdateUsingPayload fail""" | 8 """Exception thrown when _UpdateImage or _UpdateUsingPayload fail""" |
| 9 def __init__(self, code, stdout): | 9 def __init__(self, code, output): |
| 10 super(UpdateException, self).__init__(output) |
| 10 self.code = code | 11 self.code = code |
| 11 self.stdout = stdout | 12 self.output = output |
| OLD | NEW |