Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Better error messages

  • Loading branch information...
commit 0e9b5463556b1627c89a62e4e13f35409243e47e 1 parent 05d8b8d
@DominicWatson DominicWatson authored
View
4 org/cfstatic/core/Package.cfc
@@ -148,7 +148,7 @@
ieRestriction = getStaticFile( files[1] ).getProperty('ie');
for(i=2; i LTE ArrayLen(files); i++){
if(ieRestriction NEQ getStaticFile( files[i] ).getProperty('ie')){
- $throw( type="cfstatic.Package.badConfig", message="Appropriate error message here" );
+ $throw( type="cfstatic.Package.badConfig", message="There was an error compiling the package, '#_getPackageName()#', not all files define the same IE restriction." );
}
}
}
@@ -167,7 +167,7 @@
media = getStaticFile( files[1] ).getProperty('media', 'screen, projection', 'string');
for(i=2; i LTE ArrayLen(files); i++){
if(media NEQ getStaticFile( files[i] ).getProperty('media', 'screen, projection', 'string')){
- $throw( type="cfstatic.Package.badConfig", message="Appropriate error message here" );
+ $throw( type="cfstatic.Package.badConfig", message="There was an error compiling the package, '#_getPackageName()#', not all files define the same css media" );
}
}
}
View
4 org/cfstatic/core/PackageCollection.cfc
@@ -301,7 +301,7 @@
ieRestriction = getPackage( packages[1] ).getIeRestriction();
for(i=2; i LTE ArrayLen(packages); i++){
if(ieRestriction NEQ getPackage( packages[i] ).getIeRestriction()){
- $throw( type="cfstatic.PackageCollection.badConfig", message="Appropriate error message here" );
+ $throw( type="cfstatic.PackageCollection.badConfig", message="There was an error compiling the #_getFileType()# min file, not all files define the same IE restriction." );
}
}
}
@@ -320,7 +320,7 @@
media = getPackage( packages[1] ).getCssMedia();
for(i=2; i LTE ArrayLen(packages); i++){
if(media NEQ getPackage( packages[i] ).getCssMedia()){
- $throw( type="cfstatic.PackageCollection.badConfig", message="Appropriate error message here" );
+ $throw( type="cfstatic.PackageCollection.badConfig", message="There was an error compiling the #_getFileType()# min file, not all files define the same CSS media." );
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.