[ fix #49834805] added tests with invalid parameters
[fix #49834805] added specific error messages
[fix #49834805] change contents' type to File
Merge pull request #20 from ke4/49834805_create_a_script_to_print_a_barcode_with_a_printer

49834805 create a script to print a barcode with a printer