#ifndef JOY_ERROR_H
#define JOY_ERROR_H

#include <qmessagebox.h>

//a nice simple way of throwing up an error message if something goes wrong.

static void error(QString type, QString message ) {
	QMessageBox::warning(0,NAME" - " + type,
		message, QMessageBox::Ok, Qt::NoButton);
}

#endif
