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