blob: 7a0edd486de2f8a596e425cbe606645307d595d3 [file] [log] [blame]
David K. Bainbridge528b3182017-01-23 08:51:59 -08001// 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
7package 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.
12const (
13 NoSuchUserErrRegexp = `user: unknown user [a-z0-9_-]*`
14 NoSuchFileErrRegexp = `no such file or directory`
15 MkdirFailErrRegexp = `.* not a directory`
16)