Commit 8432cf16 authored by Stan Hu's avatar Stan Hu

Fix confusing error in database restore

If a database restore failed, users would see a confusing error message:

```
ArgumentError (wrong number of arguments (given 2, expected 0..1))
```

The `abort` call only takes a string, so simplify the call accordingly.
parent 4e12f87c
......@@ -71,7 +71,7 @@ module Backup
end
report_success(success)
abort Backup::Error, 'Restore failed' unless success
abort 'Restore failed' unless success
end
protected
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment