diff options
author | KatolaZ <katolaz@freaknet.org> | 2017-07-12 14:11:58 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2017-07-12 14:11:58 +0100 |
commit | b2b083e0597d3277f5dc075f4b17c89de51a77d0 (patch) | |
tree | d78ebc0f0c5a6bb4da5099723b7ddb067ab9e4f4 /scorsh.go | |
parent | b3ca09586c23831d9f089ab8a023580c403f8e55 (diff) |
Skeleton complete. Few functions still missing
Diffstat (limited to 'scorsh.go')
-rw-r--r-- | scorsh.go | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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) } |