Skip to content

Commit f275afe

Browse files
committed
Exception
1 parent 90f3573 commit f275afe

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Assets/Scripts/Config/SentryCliConfiguration.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1+
using System;
12
using Sentry.Unity;
2-
using UnityEditor.Build;
3-
using UnityEngine;
43

54
public class SentryCliConfiguration : SentryCliOptionsConfiguration
65
{
@@ -13,7 +12,7 @@ public override void Configure(SentryCliOptions cliOptions)
1312
}
1413
else
1514
{
16-
throw new BuildFailedException("Failed to fetch `auth_token` from the command line arguments");
15+
throw new InvalidOperationException("Failed to fetch `auth_token` from the command line arguments");
1716
}
1817

1918
cliOptions.Organization = "demo";

Assets/Scripts/Config/SentryOptionConfiguration.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1+
using System;
12
using Sentry.Unity;
2-
using UnityEditor.Build;
3-
using UnityEngine;
43

54
public class SentryOptionConfiguration : SentryOptionsConfiguration
65
{
@@ -13,7 +12,7 @@ public override void Configure(SentryUnityOptions options)
1312
}
1413
else
1514
{
16-
throw new BuildFailedException("Failed to fetch `dsn` from the command line arguments");
15+
throw new InvalidOperationException("Failed to fetch `dsn` from the command line arguments");
1716
}
1817
}
1918
}

0 commit comments

Comments
 (0)