summaryrefslogtreecommitdiff
path: root/scorsh.go
diff options
context:
space:
mode:
Diffstat (limited to 'scorsh.go')
-rw-r--r--scorsh.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/scorsh.go b/scorsh.go
index af9c367..1d345b4 100644
--- a/scorsh.go
+++ b/scorsh.go
@@ -1,8 +1,8 @@
package main
import (
- "errors"
"flag"
+ "fmt"
"log"
)
@@ -10,7 +10,7 @@ import (
var conf_file = flag.String("c", "./scorsh.cfg", "Configuration file for SCORSH")
-func SCORSHErr(err int) error {
+func SCORSHerr(err int) error {
var err_str string
@@ -28,8 +28,7 @@ func SCORSHErr(err int) error {
default:
err_str = "Generic Error"
}
-
- return errors.New(err_str)
+ return fmt.Errorf("%s", err_str)
}