David K. Bainbridge | 528b318 | 2017-01-23 08:51:59 -0800 | [diff] [blame] | 1 | // Copyright 2014 Canonical Ltd. |
| 2 | // Copyright 2014 Cloudbase Solutions SRL |
| 3 | // Licensed under the LGPLv3, see LICENCE file for details. |
| 4 | |
| 5 | package utils |
| 6 | |
| 7 | // The following are strings/regex-es which match common Windows error messages |
| 8 | // that may be returned in case of failed calls to the system. |
| 9 | // Any extra leading/trailing regex-es are left to be added by the developer. |
| 10 | const ( |
| 11 | NoSuchUserErrRegexp = `No mapping between account names and security IDs was done\.` |
| 12 | NoSuchFileErrRegexp = `The system cannot find the (file|path) specified\.` |
| 13 | MkdirFailErrRegexp = `mkdir .*` + NoSuchFileErrRegexp |
| 14 | ) |