zeripath 716fcfcf72 
	
	
	Make every not exist error unwrappable to a fs.ErrNotExist ( #20891 ) ... 
			A lot of our code is repeatedly testing if individual errors are
specific types of Not Exist errors. This is repetitative and unnecesary.
`Unwrap() error` provides a common way of labelling an error as a
NotExist error and we can/should use this.
This PR has chosen to use the common `io/fs` errors e.g.
`fs.ErrNotExist` for our errors. This is in some ways not completely
correct as these are not filesystem errors but it seems like a
reasonable thing to do and would allow us to simplify a lot of our code
to `errors.Is(err, fs.ErrNotExist)` instead of
`package.IsErr...NotExist(err)`
I am open to suggestions to use a different base error - perhaps
`models/db.ErrNotExist` if that would be felt to be better.
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: delvh <dev.lh@web.de > 
		
	 
		2022-10-18 07:50:37 +02:00 
	 
	
	
	
		 
	
	
		
			
			
			
			
			
			2022-08-30 21:15:45 -05:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00 
		 
	
		
			
			
			
			
			
			2022-05-08 01:05:52 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-11 21:50:14 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00 
		 
	
		
			
			
			
			
			
			2021-09-22 13:38:34 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-03 15:36:18 +01:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-24 22:12:43 +01:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-10-15 14:18:31 +02:00 
		 
	
		
			
			
			
			
			
			2022-10-15 14:18:31 +02:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-09-04 16:14:53 +01:00 
		 
	
		
			
			
			
			
			
			2020-12-17 22:00:47 +08:00 
		 
	
		
			
			
			
			
			
			2021-05-12 01:11:42 -04:00 
		 
	
		
			
			
			
			
			
			2022-05-03 21:46:28 +02:00 
		 
	
		
			
			
			
			
			
			2022-10-15 12:49:26 +02:00 
		 
	
		
			
			
			
			
			
			2021-12-20 02:15:49 +00:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00 
		 
	
		
			
			
			
			
			
			2022-10-18 07:50:37 +02:00 
		 
	
		
			
			
			
			
			
			2022-08-09 11:22:24 +08:00 
		 
	
		
			
			
			
			
			
			2022-09-04 16:13:23 +01:00 
		 
	
		
			
			
			
			
			
			2022-01-20 18:46:10 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-10-12 13:18:26 +08:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2020-12-17 22:00:47 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-10-08 01:20:53 +08:00 
		 
	
		
			
			
			
			
			
			2022-10-08 01:20:53 +08:00 
		 
	
		
			
			
			
			
			
			2019-03-27 17:33:00 +08:00 
		 
	
		
			
			
			
			
			
			2022-09-04 13:47:56 +03:00 
		 
	
		
			
			
			
			
			
			2022-06-11 21:50:14 +08:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2022-01-20 18:46:10 +01:00 
		 
	
		
			
			
			
			
			
			2022-10-10 21:54:30 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2020-12-17 22:00:47 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-08 01:05:52 +08:00 
		 
	
		
			
			
			
			
			
			2022-09-14 15:59:52 +02:00 
		 
	
		
			
			
			
			
			
			2022-09-14 14:11:24 +02:00 
		 
	
		
			
			
			
			
			
			2022-07-16 08:10:02 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-09-04 13:47:56 +03:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2022-10-17 16:40:37 +02:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2022-09-04 16:14:53 +01:00 
		 
	
		
			
			
			
			
			
			2022-08-23 14:12:43 -04:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2019-03-27 17:33:00 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00 
		 
	
		
			
			
			
			
			
			2022-06-16 23:47:44 +08:00 
		 
	
		
			
			
			
			
			
			2022-10-08 01:20:53 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-01-20 18:46:10 +01:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2020-12-17 22:00:47 +08:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2022-10-15 12:49:26 +02:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-09-14 15:59:52 +02:00 
		 
	
		
			
			
			
			
			
			2022-09-04 16:14:53 +01:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-16 23:47:44 +08:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00 
		 
	
		
			
			
			
			
			
			2022-10-17 16:40:37 +02:00 
		 
	
		
			
			
			
			
			
			2022-09-04 13:47:56 +03:00 
		 
	
		
			
			
			
			
			
			2022-08-30 21:15:45 -05:00 
		 
	
		
			
			
			
			
			
			2022-08-30 21:15:45 -05:00 
		 
	
		
			
			
			
			
			
			2020-12-17 22:00:47 +08:00 
		 
	
		
			
			
			
			
			
			2022-01-20 18:46:10 +01:00 
		 
	
		
			
			
			
			
			
			2021-10-17 20:47:12 +01:00 
		 
	
		
			
			
			
			
			
			2022-01-12 20:37:46 +00:00 
		 
	
		
			
			
			
			
			
			2022-01-20 18:46:10 +01:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2020-12-17 22:00:47 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-01-20 18:46:10 +01:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2021-05-10 03:27:03 +02:00 
		 
	
		
			
			
			
			
			
			2022-10-08 01:20:53 +08:00 
		 
	
		
			
			
			
			
			
			2022-10-08 01:20:53 +08:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2020-05-14 18:55:43 -04:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00