mirror of
https://github.com/safing/portmaster
synced 2025-09-04 03:29:12 +00:00
Improve get resource api error
This commit is contained in:
parent
7434534523
commit
d760bfb4ef
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ func registerAPIEndpoints() error {
|
||||||
|
|
||||||
// If we could not convert to acceptable format, return an error.
|
// If we could not convert to acceptable format, return an error.
|
||||||
if !converted {
|
if !converted {
|
||||||
http.Error(w, err.Error(), http.StatusNotAcceptable)
|
http.Error(w, "conversion to requested format not supported", http.StatusNotAcceptable)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue