summaryrefslogtreecommitdiff
path: root/fpdf.go
diff options
context:
space:
mode:
Diffstat (limited to 'fpdf.go')
-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
}