This commit is contained in:
@@ -135,6 +135,7 @@ func (p *PrintJob) CalculatePrintCosts() (float64, error) {
|
||||
pageCount := utils.CountPagesAtPath(p.ShopItem.Pdf)
|
||||
|
||||
if pageCount == 0 {
|
||||
fmt.Println("Pagecount of 0 - something is wrong here.")
|
||||
return 0, fmt.Errorf("Cant calculate price, pdf seems to be empty")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user