GLTFLoader error handling

Hello everyone! I have a problem in loader.

I want to handle error on loader for example if file doesn’t exists in directory i want to just stop loader catch error and jump er code so basicaly i dont want to see Error warning in console. any suggestions?