
import { Notify } from '@antmjs/vantui';

export function warn(predicate, message) {
  if (predicate) {
    Notify.show({
      message,
      type: 'warning',
    })
    throw new Error(message);
  }
}
