File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import 'dotenv/config' ;
22import { v7 } from 'css-authn' ;
3- import { fetchList } from './main.js' ;
3+ import { fetchList , Interpretation } from './main.js' ;
44
55let authenticatedFetch : Awaited < ReturnType < typeof v7 . getAuthenticatedFetch > > ;
66
1313} catch ( e ) {
1414 console . log ( 'Could not connect to your pod' ) ;
1515}
16- const listUrl = 'https://michielbdejong.solidcommunity.net/movies/' ;
17- const interpretation = await fetchList ( listUrl , authenticatedFetch ) ;
16+
17+ let interpretation : Interpretation ;
18+ try {
19+
20+ const listUrl = 'https://michielbdejong.solidcommunity.net/movies/' ;
21+ interpretation = await fetchList ( listUrl , authenticatedFetch ) ;
22+ } catch ( e ) {
23+ console . error ( 'Could not fetch your movies folder' ) ;
24+ }
1825interpretation . listings . forEach ( listing => console . log ( listing ) ) ;
1926interpretation . watchActions . forEach ( watchAction => console . log ( watchAction ) ) ;
27+
You can’t perform that action at this time.
0 commit comments