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 | // +build !windows |
| 6 | |
| 7 | package utils |
| 8 | |
| 9 | // The following are strings/regex-es which match common Unix error messages |
| 10 | // that may be returned in case of failed calls to the system. |
| 11 | // Any extra leading/trailing regex-es are left to be added by the developer. |
| 12 | const ( |
| 13 | NoSuchUserErrRegexp = `user: unknown user [a-z0-9_-]*` |
| 14 | NoSuchFileErrRegexp = `no such file or directory` |
| 15 | MkdirFailErrRegexp = `.* not a directory` |
| 16 | ) |