@@ -54,7 +54,12 @@ class CrashReporter {
}
getUploadedReports () {
- return binding.getUploadedReports(this.getCrashesDirectory())
+ const crashDir = this.getCrashesDirectory()
+ if (!crashDir) {
+ throw new Error('crashReporter has not been started')
+ }
+
+ return binding.getUploadedReports(crashDir)
getCrashesDirectory () {