Only handle error in strict mode