Skip to content

Commit 0685f89

Browse files
authored
correct error printing
1 parent 1920a2d commit 0685f89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func printOdataError(err error) {
143143
switch err.(type) {
144144
case *odataerrors.ODataError:
145145
typed := err.(*odataerrors.ODataError)
146-
fmt.Printf("error:", typed.Error())
146+
fmt.Printf("error: %s", typed.Error())
147147
if terr := typed.GetError(); terr != nil {
148148
fmt.Printf("code: %s", *terr.GetCode())
149149
fmt.Printf("msg: %s", *terr.GetMessage())

0 commit comments

Comments
 (0)