webkitpdf.vala
authorAlan Knowles <alan@roojs.com>
Mon, 25 Apr 2016 07:49:08 +0000 (15:49 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 25 Apr 2016 07:49:08 +0000 (15:49 +0800)
webkitpdf.vala

index f064cfb..97f2725 100644 (file)
@@ -39,8 +39,8 @@ public class webkitpdf {
             if (webkitpdf.opt_url == null) {
                 throw new OptionError.BAD_VALUE("missing url");
             }
-                       if (webkitpdf.opt_target_jpg == null && webkitpdf.opt_target_pdf == null) {
-                throw new OptionError.BAD_VALUE("missing pdf or jpg filename");
+                       if (webkitpdf.opt_target_png == null && webkitpdf.opt_target_pdf == null) {
+                throw new OptionError.BAD_VALUE("missing pdf or png filename");
             }
             if (webkitpdf.opt_target_pdf == null) {
                 throw new OptionError.BAD_VALUE("missing pdf file path");