mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	fix: check and print module isnt found instead of failing
This commit is contained in:
		
							parent
							
								
									179947cd98
								
							
						
					
					
						commit
						f741c2709c
					
				@ -72,6 +72,10 @@ These are the global Hilbish functions that are always available and not part of
 | 
			
		||||
				subdocName = 'index'
 | 
			
		||||
			end
 | 
			
		||||
			f = io.open(moddocPath .. subdocName .. '.txt', 'rb')
 | 
			
		||||
			if not f then
 | 
			
		||||
				print('No documentation found for ' .. mod .. '.')
 | 
			
		||||
				return
 | 
			
		||||
			end
 | 
			
		||||
			funcdocs = f:read '*a'
 | 
			
		||||
			local subdocs = table.map(fs.readdir(moddocPath), function(f)
 | 
			
		||||
				return lunacolors.underline(lunacolors.blue(string.gsub(f, '.txt', '')))
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user