Commit fc12d5c
authored
Fix compiler error on line 20
This snippet gives a compiler warning that you cannot assign an error type to a string, err.Error() casts it correcty and allows it to compile.
Original code gives this compiler error: cannot use err (variable of type error) as string value in argument to context.String1 parent 41211f2 commit fc12d5c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments