mirror of https://github.com/docker/docs.git
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:
commit
42a08deba5
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue