Skip to content
Snippets Groups Projects
Commit 74695367 authored by Jaden Diefenbaugh's avatar Jaden Diefenbaugh
Browse files

throw error instead of logging, add logging for groupsService

parent 3695209a
No related branches found
No related tags found
1 merge request!223Reports overhaul
...@@ -284,6 +284,8 @@ angular.module('reportApp').factory('GroupsService', ['reportFactory', function( ...@@ -284,6 +284,8 @@ angular.module('reportApp').factory('GroupsService', ['reportFactory', function(
reportItems.forEach(i => g.addReportItem(i.id, i.content)); reportItems.forEach(i => g.addReportItem(i.id, i.content));
Object.entries(aliases).forEach(([e, a]) => g.setAliasToExperiment(a, e)); Object.entries(aliases).forEach(([e, a]) => g.setAliasToExperiment(a, e));
}); });
console.log(groupsServiceInstance.groups);
}; };
return groupsServiceInstance; return groupsServiceInstance;
......
...@@ -103,7 +103,7 @@ angular.module('reportApp').factory('ReportService', ['GroupsService', 'plotterF ...@@ -103,7 +103,7 @@ angular.module('reportApp').factory('ReportService', ['GroupsService', 'plotterF
return reportFactory.getReportInformationFromNumber(number, '') return reportFactory.getReportInformationFromNumber(number, '')
.then(res => rs.processReport(res.data)); .then(res => rs.processReport(res.data));
} else { } else {
console.error('UrlService could not parse the current URL'); throw new Error('UrlService could not parse the current URL');
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment