mirror of
https://github.com/docker/docs.git
synced 2026-11-06 12:54:24 +03:00
Remove "open : no such file or directory" message during crash report
Add an empty string check to the path argument of addFile(). Send() method of BugsnagCrashReporter calls addFile() passing err.LogFilePath as the path argument, which is an empty string if the driver is not virtualbox. Fixes #3559 Signed-off-by: KOBAYASHI Shinji <koba@jp.fujitsu.com>
This commit is contained in:
@@ -112,6 +112,9 @@ func (r *BugsnagCrashReporter) noReportFileExist() bool {
|
||||
}
|
||||
|
||||
func addFile(path string, metaData *bugsnag.MetaData) {
|
||||
if path == "" {
|
||||
return
|
||||
}
|
||||
file, err := os.Open(path)
|
||||
if err != nil {
|
||||
log.Debug(err)
|
||||
|
||||
Reference in New Issue
Block a user