Browse Source

Added error message on failure to prepare file

refactor
4 years ago
parent
commit
2cdf94e599
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      source/main.cpp

+ 4
- 1
source/main.cpp View File

@@ -164,7 +164,10 @@ int main(int argc, char ** argv) {
t_printdata printdata = Printfile( infile, outfile );
// Get more attributes
// Opens buffer for arbitrary data
Preparefiletoprint( &printdata );
if (Preparefiletoprint( &printdata )) {
cerr << "Could not prepare file for printing" << endl;
return -1;
}
//Get more attributes
// Construct superblock
if ( Initializeprinting( &printdata, WIDTH_A4, HEIGHT_A4 ) == 0 ) {

Loading…
Cancel
Save