diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-04-08 01:55:07 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-08 01:55:07 +0000 |
commit | e949f65eeffe7b679e5bbf3136a3f8e9807fd670 (patch) | |
tree | 63fb8069611eefb1cb854f9b3d7d121469b90c69 /runsc/specutils | |
parent | e86e426bace1598a0c7be525d3b70ff0502284d8 (diff) | |
parent | 56054fc1fb0b92cb985f96467f9059e202d8095c (diff) |
Merge release-20200323.0-89-g56054fc (automated)
Diffstat (limited to 'runsc/specutils')
-rw-r--r-- | runsc/specutils/specutils.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runsc/specutils/specutils.go b/runsc/specutils/specutils.go index d3c2e4e78..0f4a9cf6d 100644 --- a/runsc/specutils/specutils.go +++ b/runsc/specutils/specutils.go @@ -528,3 +528,8 @@ func EnvVar(env []string, name string) (string, bool) { } return "", false } + +// FaqErrorMsg returns an error message pointing to the FAQ. +func FaqErrorMsg(anchor, msg string) string { + return fmt.Sprintf("%s; see https://gvisor.dev/faq#%s for more details", msg, anchor) +} |