mirror of
https://github.com/michivonah/themepark-assistant.git
synced 2025-12-24 23:16:29 +01:00
add error classes to libs + adjust existing imports #3
This commit is contained in:
parent
6b61bd0df3
commit
6bb5037eae
10 changed files with 27 additions and 10 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { getDbEnv } from '../db/client'
|
||||
import { themepark } from '../db/schema'
|
||||
import { countryCodesDE } from '../lib/countries'
|
||||
import { BackgroundFetchError, ThemeparkUpdateError } from '../errors/background-error'
|
||||
import { FetchError, ThemeparkUpdateError } from '../errors'
|
||||
import httpRequest from '../lib/http-request'
|
||||
import asyncBatchJob from '../lib/async-batch-job'
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ async function fetchThemeparks(
|
|||
return result;
|
||||
}
|
||||
catch(e){
|
||||
throw new BackgroundFetchError(e);
|
||||
throw new FetchError(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue