Skip to content

Commit

Permalink
Error Message for Invalid Datasources
Browse files Browse the repository at this point in the history
  • Loading branch information
leoherzog committed Jun 18, 2024
1 parent 3b34fcf commit ba06bd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code.gs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ function Schedule() {
refreshFromAPRSFI_();
ScriptApp.newTrigger('refreshFromAPRSFI_').timeBased().everyMinutes(1).create();
break;
default:
throw 'Invalid datasource';
}
if (updateWunderground) ScriptApp.newTrigger('updateWunderground_').timeBased().everyMinutes(1).create();
if (updateWindy) ScriptApp.newTrigger('updateWindy_').timeBased().everyMinutes(5).create();
Expand Down

0 comments on commit ba06bd4

Please sign in to comment.