Skip to content

Commit

Permalink
fix(service): proper error if used without url from config
Browse files Browse the repository at this point in the history
  • Loading branch information
jkubiszewski committed Dec 4, 2019
1 parent 7e6357f commit 56f5d15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ speed-measure-plugin.json
*.launch
.settings/
*.sublime-workspace
*.iml

# IDE - VSCode
.vscode/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class LazyElementsLoaderService {
const config = this.getElementConfig(tag);

if (!url) {
if (!config) {
if (!config || !config.url) {
throw new Error(`${LOG_PREFIX} - url for <${tag}> not found`);
}
url = config.url;
Expand Down

0 comments on commit 56f5d15

Please sign in to comment.