chromix icon indicating copy to clipboard operation
chromix copied to clipboard

Error pages

Open infernix opened this issue 11 years ago • 3 comments

Is there any way to detect when a tab is showing a 404, or an "Unable to connect to the internet" page or similar? Currently, '''chromix url''' will just return the last URL that that tab is on, which may be valid but for my use case is insufficient.

Or does this require event callback?

infernix avatar Oct 22 '14 21:10 infernix

Does the page contain useful data or the fail whale, right? Hmm. Don't know, sorry.

smblott-github avatar Oct 26 '14 22:10 smblott-github

No useful data, no; just the built-in error page. As the URL does not change in the address bar, 'chromix url' simply returns the same URL as before the fail whale shows.

infernix avatar Nov 08 '14 14:11 infernix

Infernix: There is a klugy work-around. Most 404 pages have "404 Not Found" in the title. Assuming that you want to watch for 404's (not sure if polling is that good of an a good idea), but if you periodically run "chromix without pin list" (or similar) and filter for "404 Not Found", you'll get the data I'm assuming you're seeking.

smblott: This is a very nice-to-have tool! It fills a gap in my kit. Thanks much!

packetgeek avatar Nov 15 '15 10:11 packetgeek