Branch: Tag:

2004-10-09

2004-10-09 11:47:02 by Per Hedbor <ph@opera.com>

Presumably easier to understand error message than 'bad argument 1 to cpp'

Rev: lib/master.pike.in:1.362

6:   // Pike is distributed under GPL, LGPL and MPL. See the file COPYING   // for more information.   // - // $Id: master.pike.in,v 1.361 2004/09/06 20:40:37 mast Exp $ + // $Id: master.pike.in,v 1.362 2004/10/09 11:47:02 per Exp $      #pike __REAL_VERSION__   //#pragma strict_types
2672:    exit(1, "Could not find file %O.\n", argv[0]);    if( !file_stat(argv[0])->isreg )    exit(1, "File %O is not a regular file.\n", argv[0]); +  if( !master_read_file(argv[0]) ) +  exit(1, "File %O is not readable.\n", argv[0]);    error( "Pike: Failed to compile script:\n"    "%s\n", stringp(err[0])?err[0]:describe_backtrace(err) );    }