chore: message handling

This commit is contained in:
Nathan Walker
2021-03-01 14:27:25 -08:00
parent 2f81d606fc
commit d88cef3b48
2 changed files with 4 additions and 2 deletions

View File

@@ -114,7 +114,9 @@ class CSSSource {
return CSSSource.fromDetect(cssOrAst, keyframes, resolvedModuleName);
}
} catch (e) {
Trace.write(`Could not load CSS from ${uri}: ${e}`, Trace.categories.Error, Trace.messageType.error);
if (Trace.isEnabled()) {
Trace.write(`Could not load CSS from ${uri}: ${e}`, Trace.categories.Error, Trace.messageType.warn);
}
}
return CSSSource.fromFile(appRelativeUri, keyframes);