mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
chore: silence unnecessary throw message
This commit is contained in:
@ -11,6 +11,7 @@ import { View } from '../ui/core/view';
|
||||
import * as bindableResources from '../ui/core/bindable/bindable-resources';
|
||||
import { CSSUtils } from '../css/system-classes';
|
||||
import { Enums } from '../ui/enums';
|
||||
import { Trace } from '../trace';
|
||||
|
||||
export * from './application-interfaces';
|
||||
|
||||
@ -101,7 +102,9 @@ export function loadAppCss(): void {
|
||||
cssFile: getCssFileName(),
|
||||
});
|
||||
} catch (e) {
|
||||
throw new Error(`The app CSS file ${getCssFileName()} couldn't be loaded!`);
|
||||
if (Trace.isEnabled()) {
|
||||
Trace.write(`The app CSS file ${getCssFileName()} couldn't be loaded!`, Trace.categories.Style, Trace.messageType.error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user