How to force javascript query to fail?

return Promise.reject("") no longer causes the query to fail.

// jsAddtoST
let auth = await restSTAuthent.trigger()
if (auth?.token === undefined) {
  utils.showNotification({title: 'Error',description: JSON.stringify(restSTAuthent.data), notificationType:"error"})
  return Promise.reject("")
}

restSTAuthent fails, I show the notification and return the Promise.reject, however, the js query succeeds: