summaryrefslogtreecommitdiffhomepage
path: root/runsc/specutils
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-04-08 01:55:07 +0000
committergVisor bot <gvisor-bot@google.com>2020-04-08 01:55:07 +0000
commite949f65eeffe7b679e5bbf3136a3f8e9807fd670 (patch)
tree63fb8069611eefb1cb854f9b3d7d121469b90c69 /runsc/specutils
parente86e426bace1598a0c7be525d3b70ff0502284d8 (diff)
parent56054fc1fb0b92cb985f96467f9059e202d8095c (diff)
Merge release-20200323.0-89-g56054fc (automated)
Diffstat (limited to 'runsc/specutils')
-rw-r--r--runsc/specutils/specutils.go5
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)
+}