diff --git a/tests/functions/S3GetMetadata.cfc b/tests/functions/S3GetMetadata.cfc index 2d4a64d..780df4f 100644 --- a/tests/functions/S3GetMetadata.cfc +++ b/tests/functions/S3GetMetadata.cfc @@ -47,11 +47,14 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="s3" { assertEquals(bucketName, meta.bucketName); assertEquals(objectName, meta.objectName); - - var meta=S3GetMetadata( - path:path, - accessKeyId:cred.ACCESS_KEY_ID, secretAccessKey:cred.SECRET_KEY, host:(isNull(cred.HOST)?nullvalue():cred.HOST)); - + try { + var meta=S3GetMetadata( + path:path, + accessKeyId:cred.ACCESS_KEY_ID, secretAccessKey:cred.SECRET_KEY, host:(isNull(cred.HOST)?nullvalue():cred.HOST)); + } + catch(e) { + throw path; + } assertEquals(bucketName, meta.bucketName); assertEquals(objectName, meta.objectName);