web: fix typo in "-f -" warning
This commit is contained in:
		
							parent
							
								
									c8347b00cf
								
							
						
					
					
						commit
						6fb76d979f
					
				| @ -57,7 +57,7 @@ withJournalDo' opts cmd = do | ||||
|   -- https://github.com/simonmichael/hledger/issues/202 | ||||
|   -- -f- gives [Error#yesod-core] <stdin>: hGetContents: illegal operation (handle is closed) for some reason | ||||
|   -- Also we may be writing to this file. Just disallow it. | ||||
|   when (f == "-") $ error' "hledger-web doesn't support --f -, please specify a file path" | ||||
|   when (f == "-") $ error' "hledger-web doesn't support -f -, please specify a file path" | ||||
| 
 | ||||
|   readJournalFile Nothing Nothing True f >>= | ||||
|    either error' (cmd opts . journalApplyAliases (aliasesFromOpts $ cliopts_ opts)) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user