mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 03:40:45 +08:00
Print friendlier file path when file does not exist
This commit is contained in:
parent
fbf75b1d14
commit
31b609dff0
@ -362,7 +362,8 @@ func (f *Frontend) processRequest(req *edge.ICoreWebView2WebResourceRequest, arg
|
|||||||
// for all other platforms to improve security.
|
// for all other platforms to improve security.
|
||||||
return // Let WebView2 handle the request with its default handler
|
return // Let WebView2 handle the request with its default handler
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
f.logger.Error("Error processing request '%s': %s (HttpResponse=%s)", uri, err, res)
|
path := strings.Replace(uri, "https://wails.localhost", "", 1)
|
||||||
|
f.logger.Error("Error processing request '%s': %s (HttpResponse=%s)", path, err, res)
|
||||||
}
|
}
|
||||||
|
|
||||||
headers := []string{}
|
headers := []string{}
|
||||||
|
Loading…
Reference in New Issue
Block a user