queue: Check that we can create the queue directory
When creating a new Queue instance, we os.MkdirAll the queue directory. Currently we don't check if it fails, which will cause us to find out about problems when the queue is first used, where it is more annoying to troubleshoot. This patch adjusts the code so that we check and propagate the error. That way, problems with the queue directory will be more evident and easier to handle.
Showing with 26 additions and 12 deletions