0
I try to take for example a file that does not exist on my site, as:
try {
$.getScript('app/controllers/arquivo-errado.js', function(){});
} catch (e) {
// caso de erro
}
The error is returned in the console:
GET URL...app/controllers/file-wrong.js? _=1484154145345 404 (Not Found)
I want to know how can exchange or hide this error, for example exchange it for an error 'File does not exist', or without showing the error.
I managed to get around the error in another way, having a file of routes, but I tested here with the proxy file and ran good too, thanks
– Leonardo