Merge pull request #3560 from s-koba/3559-fix-crash_report

Remove "open : no such file or directory" message during crash report
This commit is contained in:
Nathan LeClaire 2016-06-30 17:48:40 -07:00 committed by GitHub
commit 42a08deba5
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,9 @@ func (r *BugsnagCrashReporter) noReportFileExist() bool {
} }
func addFile(path string, metaData *bugsnag.MetaData) { func addFile(path string, metaData *bugsnag.MetaData) {
if path == "" {
return
}
file, err := os.Open(path) file, err := os.Open(path)
if err != nil { if err != nil {
log.Debug(err) log.Debug(err)