The primary factor that distinguishes fraud from error is whether the underlying action that results in the misstatement in the financial statements is intentional or unintentional.
Unintentional errors can still be prosecuted as fraud if the harm done to individuals is great enough.