Skip to content

Commit

Permalink
Update compareDefault.cfm
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jun 27, 2024
1 parent 2cb4988 commit 8c6b10a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions custom/default-cfconfig/compareDefault.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,23 @@
systemOutput( cf, true );
}
log = expandPath( '{lucee-config}/logs/out.log' );
if ( !fileExists( log ) ){
if ( fileExists( log ) ){
systemOutput( "", true );
systemOutput( "--------- out.log-----------", true );
systemOutput( fileRead( log ), true );
} else {
systemOutput( " no out.log [#log#]", true );
}
errlog = expandPath( '{lucee-config}/logs/err.log' );
if ( !fileExists( errlog ) ){
if ( fileExists( errlog ) ){
systemOutput( "", true );
systemOutput( "--------- err.log-----------", true );
systemOutput( fileRead( errlog ), true );
} else {
systemOutput( " no err.log [#errlog#]", true );
}
throw "missing .CFConfig.json [#cfgPath#]";
}
Expand Down

0 comments on commit 8c6b10a

Please sign in to comment.