Skip to content
This repository was archived by the owner on Aug 14, 2020. It is now read-only.

Commit 034df1e

Browse files
add possible error
1 parent 80a8901 commit 034df1e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ async function run() {
2222
apiKey = username
2323
} catch (e) {}
2424

25+
if (!apiEndpoint || !apiKey) {
26+
throw Error('SCOPE_DSN does not have the correct format')
27+
}
28+
2529
console.log(`Command: ${command}`)
2630
if (dsn) {
2731
console.log(`DSN has been set.`)

0 commit comments

Comments
 (0)