summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Montag <pmontag@iseeme.com>2018-11-08 14:37:57 -0600
committerPaul Montag <pmontag@iseeme.com>2018-11-08 14:37:57 -0600
commit2253c0aa4a1566727231123793a2eda56c571c8f (patch)
tree704baa5f18d88418157e57595f6b0d9b44765176
parent91898b5ca557dbf88649ee45b12a484d3780b05f (diff)
Fixed a stupid bug
-rw-r--r--fpdf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdf.go b/fpdf.go
index 9818aeb..43688dd 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -359,7 +359,7 @@ func (f *Fpdf) SetPageBox(t string, pb PageBox) {
case "artbox":
t = "ArtBox"
default:
- f.err = fmt.Sprintf("%s is not a valid page box type")
+ f.err = fmt.Errorf("%s is not a valid page box type", t)
return
}