summaryrefslogtreecommitdiff
path: root/proto/fail.go
diff options
context:
space:
mode:
Diffstat (limited to 'proto/fail.go')
-rw-r--r--proto/fail.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/proto/fail.go b/proto/fail.go
new file mode 100644
index 0000000..0b6366b
--- /dev/null
+++ b/proto/fail.go
@@ -0,0 +1,11 @@
+package proto
+
+type Fail Object
+
+func (f Fail) Cmd() Command {
+ return NewCmd("fail", "", Object(f))
+}
+
+func (f Fail) Error() string {
+ return f.Kind
+}